Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit af6828e

Browse files
committed
update code comments
1 parent ed6a64b commit af6828e

File tree

3 files changed

+30
-39
lines changed

3 files changed

+30
-39
lines changed

dist/es6-module-loader-sans-promises.js

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,22 @@
33
44
Loader Polyfill
55
6-
- Implemented exactly to the 2013-12-02 Specification Draft -
6+
- Implemented exactly to the 2014-04-27 Specification Draft.
7+
Loader implemented to the modules draft from
78
https://github.com/jorendorff/js-loaders/blob/e60d3651/specs/es6-modules-2013-12-02.pdf
8-
with the only exceptions as described here
9+
10+
- All functions are commented with their spec numbers, with spec differences commented.
11+
12+
- All spec bugs are commented in this code with links to the spec bugs.
913
1014
- Abstract functions have been combined where possible, and their associated functions
11-
commented
15+
commented.
1216
1317
- When the traceur global is detected, declarative modules are transformed by Traceur
14-
before execution. The Traceur parse tree is stored as load.body, analogously to the
15-
spec
16-
17-
- Link and EnsureEvaluated have been customised from the spec
18-
19-
- Module Linkage records are stored as: { module: (actual module), dependencies, body, name, address }
20-
21-
- Cycles are not supported at all and will throw an error
18+
into the `instantiate` System.register output.
2219
23-
- Realm implementation is entirely omitted. As such, Loader.global and Loader.realm
24-
accessors will throw errors, as well as Loader.eval. Realm arguments are not passed.
20+
- Realm implementation is entirely omitted. As such, the Loader.realm accessor will
21+
throw an error, as well as Loader.eval. Realm arguments are not passed.
2522
2623
- Loader module table iteration currently not yet implemented
2724

dist/es6-module-loader.js

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -687,25 +687,22 @@ requireModule('promise/polyfill').polyfill();
687687
688688
Loader Polyfill
689689
690-
- Implemented exactly to the 2013-12-02 Specification Draft -
690+
- Implemented exactly to the 2014-04-27 Specification Draft.
691+
Loader implemented to the modules draft from
691692
https://github.com/jorendorff/js-loaders/blob/e60d3651/specs/es6-modules-2013-12-02.pdf
692-
with the only exceptions as described here
693+
694+
- All functions are commented with their spec numbers, with spec differences commented.
695+
696+
- All spec bugs are commented in this code with links to the spec bugs.
693697
694698
- Abstract functions have been combined where possible, and their associated functions
695-
commented
699+
commented.
696700
697701
- When the traceur global is detected, declarative modules are transformed by Traceur
698-
before execution. The Traceur parse tree is stored as load.body, analogously to the
699-
spec
700-
701-
- Link and EnsureEvaluated have been customised from the spec
702-
703-
- Module Linkage records are stored as: { module: (actual module), dependencies, body, name, address }
704-
705-
- Cycles are not supported at all and will throw an error
702+
into the `instantiate` System.register output.
706703
707-
- Realm implementation is entirely omitted. As such, Loader.global and Loader.realm
708-
accessors will throw errors, as well as Loader.eval. Realm arguments are not passed.
704+
- Realm implementation is entirely omitted. As such, the Loader.realm accessor will
705+
throw an error, as well as Loader.eval. Realm arguments are not passed.
709706
710707
- Loader module table iteration currently not yet implemented
711708

lib/loader.js

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,22 @@
33
44
Loader Polyfill
55
6-
- Implemented exactly to the 2013-12-02 Specification Draft -
6+
- Implemented exactly to the 2014-04-27 Specification Draft.
7+
Loader implemented to the modules draft from
78
https://github.com/jorendorff/js-loaders/blob/e60d3651/specs/es6-modules-2013-12-02.pdf
8-
with the only exceptions as described here
9+
10+
- All functions are commented with their spec numbers, with spec differences commented.
11+
12+
- All spec bugs are commented in this code with links to the spec bugs.
913
1014
- Abstract functions have been combined where possible, and their associated functions
11-
commented
15+
commented.
1216
1317
- When the traceur global is detected, declarative modules are transformed by Traceur
14-
before execution. The Traceur parse tree is stored as load.body, analogously to the
15-
spec
16-
17-
- Link and EnsureEvaluated have been customised from the spec
18-
19-
- Module Linkage records are stored as: { module: (actual module), dependencies, body, name, address }
20-
21-
- Cycles are not supported at all and will throw an error
18+
into the `instantiate` System.register output.
2219
23-
- Realm implementation is entirely omitted. As such, Loader.global and Loader.realm
24-
accessors will throw errors, as well as Loader.eval. Realm arguments are not passed.
20+
- Realm implementation is entirely omitted. As such, the Loader.realm accessor will
21+
throw an error, as well as Loader.eval. Realm arguments are not passed.
2522
2623
- Loader module table iteration currently not yet implemented
2724

0 commit comments

Comments
 (0)