summaryrefslogtreecommitdiffstats
path: root/js/src/builtin/Module.js
Commit message (Collapse)AuthorAgeLines
* Issue #618 - Align error handling for module scripts with the spec - Debug ↵Gaming4JC2020-08-30-1/+2
| | | | | | | | follow up MODULE_STATUS_ERRORED is no more. Replacing with newer API. Ref: BZ 1420420
* Issue #618 - Use a single slot for the module's environment object.Moonchild2020-08-30-2/+5
| | | | | | | | | | | | | | | | | | | | According to the spec this isn't created until the module is instantiated, but we create it when we compile the module. We stored this previously in InitialEnvironmentSlot and copied it to EnvironmentSlot when it was supposed to be created, but we can just store it in the latter slot straight away and check the module's status and return null if it shouldn't exist yet. This reduces the number of slots needed on a moduleObject to 17. Re: BZ 1420412 Part 1 We can't implement the second part to further reduce our number of slots, because it relies on SetProxyReservedSlot which in turn relies on rearchitecturing JS proxies to make reserved slots dynamic. That's a rabbit hole we really don't want to fall into. So, we'll end up being a bit slower because it can't be in-line allocated with having more than 16 slots, but so be it. I sincerely doubt it will make any practical difference.
* Issue #618 - Align error handling for module scripts with the spec (again)Moonchild2020-08-30-152/+140
| | | | | | | | This updates module implementation to match spec regarding handling of instantiation errors, after it was changed yet again, this time to not remember instantiation errors, but instead immediately rethrow applicable ones. Ref: BZ 1420420
* Issue #618 - Fix typo and remove old function declarations.Moonchild2020-07-10-1/+1
|
* Issue #618 - Report source position information (line/column)Moonchild2020-07-10-16/+21
| | | | | | Report source position information for module export resolution failures. Ref: BZ 1362098
* Issue #618 - Align module instantiation/errors with the updated spec.Moonchild2020-07-10-102/+431
| | | | | Store and re-throw module instantiation and evaluation errors. Ref: BZ 1374239, 1394492
* Bug 1341298 - Relax expected module state when resolving modules and ↵janekptacijarabaci2018-04-14-4/+6
| | | | circular module dependencies are present
* Bug 1341411 - Support circular module dependencies through export* per ES2017janekptacijarabaci2018-04-14-18/+10
|
* Bug 1326453 - Part 1: Remove @@iterator method from module namespace objects ↵janekptacijarabaci2018-04-14-8/+0
| | | | per ES2017
* Add m-esr52 at 52.6.0Matt A. Tobin2018-02-02-0/+328