Skip to content

Commit 15e1954

Browse files
committed
save legalizedI64 state for multiphase compilation
1 parent 44f1456 commit 15e1954

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/jsifier.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,6 +1310,7 @@ function JSify(data, functionsOnly, givenFunctions) {
13101310

13111311
// Print out global variables and postsets TODO: batching
13121312
if (phase == 'pre') {
1313+
var legalizedI64sDefault = legalizedI64s;
13131314
legalizedI64s = false;
13141315

13151316
var globalsData = analyzer(intertyper(data.unparsedGlobalss[0].lines, true), true);
@@ -1332,6 +1333,8 @@ function JSify(data, functionsOnly, givenFunctions) {
13321333

13331334
var generated = itemsDict.functionStub.concat(itemsDict.GlobalVariablePostSet);
13341335
generated.forEach(function(item) { print(indentify(item.JS || '', 2)); });
1336+
1337+
legalizedI64s = legalizedI64sDefault;
13351338
} else {
13361339
if (singlePhase) {
13371340
assert(data.unparsedGlobalss[0].lines.length == 0, dump([phase, data.unparsedGlobalss]));

0 commit comments

Comments
 (0)