diff options
Diffstat (limited to 'tools/js-optimizer.js')
-rw-r--r-- | tools/js-optimizer.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/js-optimizer.js b/tools/js-optimizer.js index 7989f1f4..49bc5d12 100644 --- a/tools/js-optimizer.js +++ b/tools/js-optimizer.js @@ -3105,7 +3105,6 @@ function outline(ast) { // Generate new function if (codeInfo.hasReturn || codeInfo.hasBreak || codeInfo.hasContinue) { // we need to capture all control flow using a top-level labeled one-time loop in the outlined function - code = [['label', 'OL', ['do', ['num', 0], ['block', code]]]]; var breakCapturers = 0; var continueCapturers = 0; traverse(code, function(node, type) { @@ -3158,6 +3157,7 @@ function outline(ast) { continueCapturers--; } }); + code = [['label', 'OL', ['do', ['num', 0], ['block', code]]]]; // do this after processing, to not confuse breakCapturers etc. // read the control data at the callsite to the outlined function if (codeInfo.hasReturn) { reps.push(makeIf( |