Index: test/mjsunit/harmony/destructuring.js |
diff --git a/test/mjsunit/harmony/destructuring.js b/test/mjsunit/harmony/destructuring.js |
index 703e521912eb2b6bee292c9271142fa08028c477..f1e2210a2abb2d3b97ca6532d9b28191666ec79c 100644 |
--- a/test/mjsunit/harmony/destructuring.js |
+++ b/test/mjsunit/harmony/destructuring.js |
@@ -6,9 +6,11 @@ |
// Flags: --harmony-default-parameters --harmony-rest-parameters |
(function TestObjectLiteralPattern() { |
- var { x : x, y : y } = { x : 1, y : 2 }; |
+ var { x : x, y : y, get, set } = { x : 1, y : 2, get: 3, set: 4 }; |
assertEquals(1, x); |
assertEquals(2, y); |
+ assertEquals(3, get); |
+ assertEquals(4, set); |
var {z} = { z : 3 }; |
assertEquals(3, z); |