| Index: test/mjsunit/harmony/object-literals-method.js
|
| diff --git a/test/mjsunit/harmony/object-literals-method.js b/test/mjsunit/harmony/object-literals-method.js
|
| index 71f44d10bc7ea65679699b904a1e1c02cd6a6ddc..605e269fcb08f4f72d08e732200c2192a1ca508f 100644
|
| --- a/test/mjsunit/harmony/object-literals-method.js
|
| +++ b/test/mjsunit/harmony/object-literals-method.js
|
| @@ -246,3 +246,27 @@ function assertIteratorResult(value, done, result) {
|
| };
|
| assertEquals('*method() { yield 1; }', object.method.toString());
|
| })();
|
| +
|
| +
|
| +(function TestProtoName() {
|
| + var object = {
|
| + __proto__() {
|
| + return 1;
|
| + }
|
| + };
|
| + assertEquals(Object.prototype, Object.getPrototypeOf(object));
|
| + assertEquals(1, object.__proto__());
|
| +})();
|
| +
|
| +
|
| +(function TestProtoName2() {
|
| + var p = {};
|
| + var object = {
|
| + __proto__() {
|
| + return 1;
|
| + },
|
| + __proto__: p
|
| + };
|
| + assertEquals(p, Object.getPrototypeOf(object));
|
| + assertEquals(1, object.__proto__());
|
| +})();
|
|
|