diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-02-27 20:09:26 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-04-14 13:00:11 +0200 |
commit | e7841ab5d740eb70f2975212de4a1066d8714438 (patch) | |
tree | d699b22a0de4ab35e953c6fe205c90374956b30b /js/src/tests/js1_8_5 | |
parent | dba09fa5c43276bb455cc4da6bd0ec302f798189 (diff) | |
download | UXP-e7841ab5d740eb70f2975212de4a1066d8714438.tar UXP-e7841ab5d740eb70f2975212de4a1066d8714438.tar.gz UXP-e7841ab5d740eb70f2975212de4a1066d8714438.tar.lz UXP-e7841ab5d740eb70f2975212de4a1066d8714438.tar.xz UXP-e7841ab5d740eb70f2975212de4a1066d8714438.zip |
Issue #1465 - Implement optional catch binding.
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() { |