As far as I can tell, `import` is hoisted (due to `ModuleDeclarationInstantiation`). Is the following code OK, then? No temporal dead zone?
```js bar(); import {foo} from 'mymodule'; function bar() { // hoisted! foo(); // already initialized? } ``` How about this code? ```js foo(); import {foo} from 'mymodule'; ``` Thanks! Axel -- Dr. Axel Rauschmayer a...@rauschma.de rauschma.de
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss