more JS regressions fixed
This commit is contained in:
parent
d3cb1bedfa
commit
bf6e0ad01a
1 changed files with 1 additions and 1 deletions
|
|
@ -548,7 +548,7 @@ proc genTry(p: PProc, n: PNode, r: var TCompRes) =
|
||||||
gen(p, n.sons[0], a)
|
gen(p, n.sons[0], a)
|
||||||
moveInto(p, a, r)
|
moveInto(p, a, r)
|
||||||
var generalCatchBranchExists = false
|
var generalCatchBranchExists = false
|
||||||
let dollar = rope(if p.target == targetJS: "$" else: "")
|
let dollar = rope(if p.target == targetJS: "" else: "$")
|
||||||
if p.target == targetJS and catchBranchesExist:
|
if p.target == targetJS and catchBranchesExist:
|
||||||
addf(p.body, "} catch (EXC) {$n var prevJSError = lastJSError;$n" &
|
addf(p.body, "} catch (EXC) {$n var prevJSError = lastJSError;$n" &
|
||||||
" lastJSError = EXC;$n --excHandler;$n", [])
|
" lastJSError = EXC;$n --excHandler;$n", [])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue