diff options
author | Lorant Pinter <lorant.pinter@prezi.com> | 2013-02-27 16:21:30 +0100 |
---|---|---|
committer | Lorant Pinter <lorant.pinter@prezi.com> | 2013-02-27 16:21:30 +0100 |
commit | 7c5ebb729659c6b9e83d371dfce6b751a871a5e4 (patch) | |
tree | 324b658121a7d36297310da1c8bc24d24701070a /src/preamble.js | |
parent | b54b59686dd99383e98f2d6f27d4bad272fee2b2 (diff) |
Remove the inner-try again -- not needed at all
Diffstat (limited to 'src/preamble.js')
-rw-r--r-- | src/preamble.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/preamble.js b/src/preamble.js index 3c2da6b3..d0e83469 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -251,9 +251,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 { - try { - var func = globalScope['Module']['_' + ident]; // closure exported function - } catch(e) {} + var func = globalScope['Module']['_' + ident]; // closure exported function if (!func) func = eval('_' + ident); // explicit lookup } catch(e) { } |