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
Probably there's some JS code doing something like let x = {}; x[moduleName] = y;, which will fail when moduleName is a non-writable property on Object.prototype - this is a stupid corner of JS semantics, but also, you probably shouldn't have runtime-internal code use the user-exposed Object.prototype.
Probably there's some JS code doing something like let x = {}; x[moduleName] = y;
Yes, there is something like this in our handling of the import object. And yes, the usage of Object.prototype is not intentional here, the object x should have been created with null prototype.
Version: 22.3.3
The following program throws "LinkError: Object does not contain member fn":
But it shouldn't - if you run the same source in a browser you'll get no error.
The wasm program whose bytes are in that array is
Probably there's some JS code doing something like
let x = {}; x[moduleName] = y;
, which will fail whenmoduleName
is a non-writable property onObject.prototype
- this is a stupid corner of JS semantics, but also, you probably shouldn't have runtime-internal code use the user-exposedObject.prototype
.cc @michaelficarra
The text was updated successfully, but these errors were encountered: