Index: test/mjsunit/harmony/object-literals-property-shorthand.js |
diff --git a/test/mjsunit/harmony/object-literals-property-shorthand.js b/test/mjsunit/harmony/object-literals-property-shorthand.js |
index 2921495d892fba40e7f111fa0250b50777a75849..9756da46c10b4309f61cbba94c0dea6c63e4832c 100644 |
--- a/test/mjsunit/harmony/object-literals-property-shorthand.js |
+++ b/test/mjsunit/harmony/object-literals-property-shorthand.js |
@@ -49,3 +49,25 @@ |
function f(x) { return {x}; } |
assertEquals('function f(x) { return {x}; }', f.toString()); |
})(); |
+ |
+ |
+(function TestProtoName() { |
+ var __proto__ = 1; |
+ var object = { |
+ __proto__ |
+ }; |
+ assertEquals(Object.prototype, Object.getPrototypeOf(object)); |
+ assertEquals(1, object.__proto__); |
+})(); |
+ |
+ |
+(function TestProtoName2() { |
+ var __proto__ = 1; |
+ var p = {}; |
+ var object = { |
+ __proto__: p, |
+ __proto__, |
+ }; |
+ assertEquals(p, Object.getPrototypeOf(object)); |
+ assertEquals(1, object.__proto__); |
+})(); |