| <p>This page tests whether a cached [[put]] consults setters in the prototype chain. |
| If the test passes, you'll see two PASS messages below.</p> |
| document.getElementById("console").appendChild(document.createTextNode(s)); |
| function callToString(arg) |
| // toString() will hit the direct prototype of this object. |
| log("PASS: I didn't segfault.\n"); |
| function callToString(arg) |
| // toString() will have to walk a prototype chain for this object. |
| MyObject.prototype = { someStuff: {} }; |
| var victim = new MyObject(); |
| var xSetterCalled = false; |
| log("PASS: I didn't segfault.\n"); |