diff options
author | Anthony Pesch <inolen@gmail.com> | 2013-07-22 15:04:46 -0700 |
---|---|---|
committer | Anthony Pesch <inolen@gmail.com> | 2013-07-24 14:50:33 -0700 |
commit | 005113837b0969b193c6c485f674a132140e39d1 (patch) | |
tree | 54569fa8c79cbf0a472930ab088998e7110c7956 /src/preamble.js | |
parent | 67b321c1617bd65bf9f24702676c2fdf51e51bb4 (diff) |
eliminate default Module global
Diffstat (limited to 'src/preamble.js')
-rw-r--r-- | src/preamble.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/preamble.js b/src/preamble.js index 41017676..ef34da6b 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -281,7 +281,7 @@ Module["ccall"] = ccall; // Returns the C function with a specified identifier (for C++, you need to do manual name mangling) function getCFunc(ident) { try { - var func = globalScope['Module']['_' + ident]; // closure exported function + var func = Module['_' + ident]; // closure exported function if (!func) func = eval('_' + ident); // explicit lookup } catch(e) { } |