Chromium Code Reviews| Index: test/mjsunit/fast-prototype.js |
| diff --git a/test/mjsunit/fast-prototype.js b/test/mjsunit/fast-prototype.js |
| index 55a0faae805341b16804deeef6e53e7a49dfc1cd..98647612f6ddcc5b1ed1d1caa82c81b5ac718d4a 100644 |
| --- a/test/mjsunit/fast-prototype.js |
| +++ b/test/mjsunit/fast-prototype.js |
| @@ -50,6 +50,8 @@ function DoProtoMagic(proto, set__proto__) { |
| (new Sub()).__proto__ = proto; |
| } else { |
| Sub.prototype = proto; |
| + // Need to instantiate Sub to mark .prototype as prototype. |
| + new Sub(); |
| } |
| } |