diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-10-07 15:43:49 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-10-07 15:43:49 -0700 |
commit | a8dd361675208b58990eefcb62f822e3f1baf198 (patch) | |
tree | 781cab87d9e518140adf81b79f9020675654ac32 /src | |
parent | 23f78aaa1103fd7cfbaaa838929859f2cbaf74f7 (diff) |
handle numbers in getVarImpl (for example, storing to null will end up a 0 there)
Diffstat (limited to 'src')
-rw-r--r-- | src/jsifier.js | 2 |
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; |