aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/jsifier.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index 536b185e..cd59d43c 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -558,7 +558,7 @@ function JSify(data, functionsOnly, givenFunctions, givenGlobalVariables) {
}
function getVarImpl(funcData, ident) {
- if (ident === 'null') return VAR_NATIVIZED; // like nativized, in that we have the actual value right here
+ if (ident === 'null' || isNumber(ident)) return VAR_NATIVIZED; // like nativized, in that we have the actual value right here
var data = getVarData(funcData, ident);
assert(data, 'What variable is this? |' + ident + '|');
return data.impl;