Commit 1c1bdfe1 authored by neis's avatar neis Committed by Commit bot

[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}
parent 915e1477
......@@ -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) };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment