[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:
neis 2016-07-14 09:11:19 -07:00 committed by Commit bot
parent 915e14777d
commit 1c1bdfe17e

View File

@ -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) };