mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-17 08:34:20 +00:00
more JS regressions fixed
This commit is contained in:
@@ -548,7 +548,7 @@ proc genTry(p: PProc, n: PNode, r: var TCompRes) =
|
||||
gen(p, n.sons[0], a)
|
||||
moveInto(p, a, r)
|
||||
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:
|
||||
addf(p.body, "} catch (EXC) {$n var prevJSError = lastJSError;$n" &
|
||||
" lastJSError = EXC;$n --excHandler;$n", [])
|
||||
|
||||
Reference in New Issue
Block a user