From 95e3ccbcb7bd802e1b4287d3fc964deda75dd73c Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 19 Apr 2013 10:07:30 -0700 Subject: properly clear __THREW__ in asm exceptions --- src/jsifier.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/jsifier.js b/src/jsifier.js index ea1289c6..a01b2655 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -1200,7 +1200,7 @@ function JSify(data, functionsOnly, givenFunctions) { } item.reloopingJS = ret; // everything but the actual branching (which the relooper will do for us) item.toLabelJS = getPhiSetsForLabel(phiSets, item.toLabel); - item.unwindLabelJS = getPhiSetsForLabel(phiSets, item.unwindLabel); + item.unwindLabelJS = (ASM_JS ? '__THREW__ = 0;' : '') + getPhiSetsForLabel(phiSets, item.unwindLabel); ret += 'if (!__THREW__) { ' + item.toLabelJS + makeBranch(item.toLabel, item.currLabelId) + ' } else { ' + item.unwindLabelJS + makeBranch(item.unwindLabel, item.currLabelId) + ' }'; return ret; -- cgit v1.2.3-18-g5258