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
[email protected]
rauschma.de
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss