[test] Extend a test of destructuring.
R=adamk@chromium.org BUG= Review-Url: https://codereview.chromium.org/2147733003 Cr-Commit-Position: refs/heads/master@{#37773}
This commit is contained in:
parent
915e14777d
commit
1c1bdfe17e
@ -5,3 +5,5 @@
|
||||
assertThrows(() => {
|
||||
try { throw {} } catch({a=b, b}) { a+b }
|
||||
}, ReferenceError);
|
||||
|
||||
try { throw {a: 42} } catch({a, b=a}) { assertEquals(42, b) };
|
||||
|
Loading…
Reference in New Issue
Block a user