DEV Community

Discussion on: Future Javascript: ShadowRealms

Collapse
 
amatiasq profile image
A. Matías Quezada

Can't wait for this, looks like JavaScript is finally becoming the mature environment we need.

Few notes as feedback:

Where you say "Or, we can create multiple promises that all translate into an array if we want to use named importValues." I'm the example you destructure the result of Promise.all as an object, did you mean to use square brackets?

Also in the last snippet it says "console.log(window.myVariable); // Returns undefined
})". I don't understand why would it return undefined, we set window.myVariable to "hello" in the first line.

Thanks for this series, it's nice to have a glimpse of the future.

Collapse
 
smpnjn profile image
Johnny Simpson

On your last point, I re-read the code and realised you were right. I've fixed it now.