Fixed TryStatement AST reformat when using acorn
As shown in http://mzl.la/1hkKgkE there is no property named `handlers` in the TryStatement node, but one named `handler`. Previously, a TypeError (cannot reach `[0]` of `M.handlers`) exception was thrown when using `uglifyjs` with the `—acorn` switch.
This commit is contained in:
parent
8fbe200012
commit
32af2ca49e
|
|
@ -51,7 +51,7 @@
|
|||
start : my_start_token(M),
|
||||
end : my_end_token(M),
|
||||
body : from_moz(M.block).body,
|
||||
bcatch : from_moz(M.handlers[0]),
|
||||
bcatch : from_moz(M.handler),
|
||||
bfinally : M.finalizer ? new AST_Finally(from_moz(M.finalizer)) : null
|
||||
});
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user