[Webkit-unassigned] [Bug 202433] REGRESSION (Safari 13): Accessing WebAssembly.Module creates a global Module function

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 2 08:44:22 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=202433

--- Comment #8 from Alon Zakai <alonzakai at gmail.com> ---
I'm not sure which js file to look at on the canvas web site, but in general emscripten output would start with

  var Module=typeof Module!=="undefined"?Module:{};

When minified by closure, that might become

  var b;b||(b=typeof Module !== 'undefined' ? Module : {});

Other minifiers may do slightly different things.

Users can define the Module object before the script, passing in arguments that way, which is why we check if it exists. In that case I'd expect the user code to have "var Module = ".

-- 
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/20191002/15a3e5ad/attachment-0001.html>


More information about the webkit-unassigned mailing list