You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it complains that the object is not extensible (and this conforms to my reading of the standard that imports provide read-only bindings).
However, when I use this statically as in
importmfrom'./test.mjs';m.d=44;console.log(m);
this works nicely and outputs {x:1, d:44}.
Why does this work? Is this not in violation of the standard?
The question is of particular importance for a design decision to be taken now and I am afraid eventually node would also treat static imports as read-only.