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 someone explain what this sentence means?
To me it says: Module declarations MUST be outside of any function
declaration, but you can declare modules pretty much anywhere as long as
you don't expect to understand what happens when you do ;-).
jjb
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss