| function makePolyProtoInstance() { |
| constructor() { this.x = 20; } |
| for (let i = 0; i < 5; ++i) |
| let polyProtoInstance = makePolyProtoInstance(); |
| String.prototype.__proto__ = polyProtoInstance; |
| Symbol.prototype.__proto__ = polyProtoInstance; |
| throw new Error("Bad asssertion") |
| assert(s.nonExistentProperty === undefined); |
| assert(typeof s.hasOwnProperty === "function"); |
| assert(s.hasOwnProperty === Object.prototype.hasOwnProperty); |
| for (let i = 0; i < 1000; ++i) { |
| polyProtoInstance.__proto__ = {z:400, y: y}; |
| for (let i = 0; i < 1000; ++i) { |