aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/preamble.js4
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) {
}