archives

« Bugzilla Issues Index

#3291 — 15.2.1.21 set module namespace


In step 8. a) v) there should be a third step here:

3. Set importedModule.[[Namespace]] to namespace

This way the created namespace can be reused again later. I couldn't see the namespace being set anywhere else otherwise.

Note it may be worth considering separating namespace creation into an easier function to share, as the browser loader spec would also need to create namespaces for loading modules that don't already have them. Perhaps this is a completely separate process though, but they should ideally share the module.[[Namespace]] object somehow.


This is already handled in 9.4.6.13 ModuleNamespaceCreate, step 11.