Closed caridy closed 8 years ago
resolution: it could be a factory for back-compat with dynamic module systems.
action: it should test for callable or module registry, and act accordingly.
solves as part of refactor https://github.com/whatwg/loader/pull/122
Does this mean returning a factory in instantiate is no longer supported?
It is supported. Step 4 allows optionalInstance
to be callable, then in https://whatwg.github.io/loader/#ensure-linked we guarantee that the factory is executed, and that it returns a namespace exotic object.
Will read more carefully next time. Thanks for clarifying!
loader.js implementation feedback