Hi,
I have noticed that [simple modules](
http://wiki.ecmascript.org/doku.php?id=strawman:simple_modules) don't
mention how does natives are supposed to behave across modules. Are they
shared or each module gets it's own Object, Function, Array, ... objects ?
I think this is something that
Simple modules decouples this concern from that of modularizing code; modules
are not state-isolated, but share the same connected graph of module instances,
including the primordials (Object, Array, etc).
Instead, module loaders
(http://wiki.ecmascript.org/doku.php?id=strawman:module_loaders)
In
http://wiki.ecmascript.org/doku.php?id=strawman:simple_modules
it says:
Module declarations are only allowed at the top level of a script or
module, but for convenience, they can nest within top-level blocks, and
are hoisted to be in scope for the entire containing script or module.
Can
Hi John,
Module declarations are only allowed at the top level of a script or module,
but for convenience, they can nest within top-level blocks, and are hoisted
to be in scope for the entire containing script or module.
Can someone explain what this sentence means?
To me it says:
4 matches
Mail list logo