diff options
Diffstat (limited to 'lib/mozilla-ast.js')
-rw-r--r-- | lib/mozilla-ast.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mozilla-ast.js b/lib/mozilla-ast.js index d7950942..bc24dfd6 100644 --- a/lib/mozilla-ast.js +++ b/lib/mozilla-ast.js @@ -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.handlers ? M.handlers[0] : M.handler), bfinally : M.finalizer ? new AST_Finally(from_moz(M.finalizer)) : null }); }, |