[Webkit-unassigned] [Bug 255396] New: Unexpected 'var' resolution in module
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Apr 13 07:56:39 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=255396
Bug ID: 255396
Summary: Unexpected 'var' resolution in module
Product: WebKit
Version: Safari 16
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: tzvetelin.vassilev at wacom.com
Problem is observed with emscripten build.
Generated Module looks in this way:
// Module.mjs
var Module = (() => {
var _scriptDir = import.meta.url;
return (
async function(Module = {}) {
console.log(Module) // result is null, expected value is data
var Module = typeof Module != "undefined" ? Module : {};
console.log(Module) // result is {}
// emscripten stuff
}
);
})();
export default Module;
After import like this:
// index.mjs
let factory = (await import("Module.mjs")).default
await Module({/* data */})
Something is got wrong and Module value is lost.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230413/397eebfa/attachment.htm>
More information about the webkit-unassigned
mailing list