diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-12-27 15:25:31 -0500 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-12-27 15:25:31 -0500 |
commit | 275adcf5ce7729295d0fa706cbb2f45ac0a875ef (patch) | |
tree | 2d0067ee1f647a132448aac0469f07a874ffd196 /src/jsifier.js | |
parent | 66021ae3aba2f532610efda849f8dbabc8f94783 (diff) |
allow (unoptimal) single-phase compiler.js invocation
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index c7279168..25e79be7 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -1333,8 +1333,10 @@ function JSify(data, functionsOnly, givenFunctions) { var generated = itemsDict.functionStub.concat(itemsDict.GlobalVariablePostSet); generated.forEach(function(item) { print(indentify(item.JS || '', 2)); }); } else { - assert(data.unparsedGlobalss[0].lines.length == 0, dump([phase, data.unparsedGlobalss])); - assert(itemsDict.functionStub.length == 0, dump([phase, itemsDict.functionStub])); + if (singlePhase) { + assert(data.unparsedGlobalss[0].lines.length == 0, dump([phase, data.unparsedGlobalss])); + assert(itemsDict.functionStub.length == 0, dump([phase, itemsDict.functionStub])); + } } if (phase == 'pre' || phase == 'funcs') { |