diff --git a/test/mjsunit/regress/regress-5178.js b/test/mjsunit/regress/regress-5178.js index bc0dd118d0..cf10ae7187 100644 --- a/test/mjsunit/regress/regress-5178.js +++ b/test/mjsunit/regress/regress-5178.js @@ -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) };