Index: test/mjsunit/harmony/computed-property-names.js |
diff --git a/test/mjsunit/harmony/computed-property-names.js b/test/mjsunit/harmony/computed-property-names.js |
index 1ec8aab51c28fcc62984bbcb1b80cc590daa184f..69360771c149006cfbde1fed952a49da27fe2608 100644 |
--- a/test/mjsunit/harmony/computed-property-names.js |
+++ b/test/mjsunit/harmony/computed-property-names.js |
@@ -263,10 +263,17 @@ function ID(x) { |
}; |
assertEquals(proto, Object.getPrototypeOf(object)); |
- var object = { |
+ object = { |
['__proto__']: proto |
}; |
assertEquals(Object.prototype, Object.getPrototypeOf(object)); |
assertEquals(proto, object.__proto__); |
assertTrue(object.hasOwnProperty('__proto__')); |
+ |
+ object = { |
+ [ID('x')]: 'X', |
+ __proto__: proto |
+ }; |
+ assertEquals('X', object.x); |
+ assertEquals(proto, Object.getPrototypeOf(object)); |
})(); |