diff options
Diffstat (limited to 'js/src/tests/js1_8_5')
-rw-r--r-- | js/src/tests/js1_8_5/reflect-parse/statements.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/js/src/tests/js1_8_5/reflect-parse/statements.js b/js/src/tests/js1_8_5/reflect-parse/statements.js index 1df86508b..11c1b88b4 100644 --- a/js/src/tests/js1_8_5/reflect-parse/statements.js +++ b/js/src/tests/js1_8_5/reflect-parse/statements.js @@ -77,7 +77,16 @@ assertStmt("try { } catch (e if foo) { } catch (e if bar) { } catch (e) { } fina catchClause(ident("e"), ident("bar"), blockStmt([])) ], catchClause(ident("e"), null, blockStmt([])), blockStmt([]))); - +assertStmt("try { } catch { }", + tryStmt(blockStmt([]), + [], + catchClause(null, null, blockStmt([])), + null)); +assertStmt("try { } catch { } finally { }", + tryStmt(blockStmt([]), + [], + catchClause(null, null, blockStmt([])), + blockStmt([]))); // Bug 632028: yield outside of a function should throw (function() { |