Skip to content

Commit 5a4814e

Browse files
authored
dylink: Ensure WASI module import is quoted (#19406)
Avoids that Closure compiler would rename/mangle the property, causing instantiation failures.
1 parent b76fdf4 commit 5a4814e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/library_dylink.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ var LibraryDylink = {
738738
'GOT.mem': new Proxy({}, GOTHandler),
739739
'GOT.func': new Proxy({}, GOTHandler),
740740
'env': proxy,
741-
{{{ WASI_MODULE_NAME }}}: proxy,
741+
'{{{ WASI_MODULE_NAME }}}': proxy,
742742
};
743743

744744
function postInstantiation(instance) {

0 commit comments

Comments
 (0)