| Index: test/mjsunit/object-create.js
|
| diff --git a/test/mjsunit/object-create.js b/test/mjsunit/object-create.js
|
| index d8385842a384fd614f374638c290fdbe59a1d3d4..d4f9e03c800d01403590244be6111f3ef601524d 100644
|
| --- a/test/mjsunit/object-create.js
|
| +++ b/test/mjsunit/object-create.js
|
| @@ -248,3 +248,14 @@ for (x in sonOfTricky) {
|
| sum += sonOfTricky[x];
|
| }
|
| assertEquals(16, sum);
|
| +
|
| +
|
| +(function createWithEmptyProtoInfoCreateMap() {
|
| + var proto = {a:1};
|
| + var instance = {__proto__: proto };
|
| + // Try force creation of prototype info on proto by loading a proto property.
|
| + assertEquals(instance.a, 1);
|
| + var result = Object.create(proto, {});
|
| + assertEquals(result.a, 1);
|
| + assertEquals(result.__proto__, proto);
|
| +})()
|
|
|