| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../../resources/js-test-pre.js"></script> |
| <p>This test verifies that the stack property able to be deleted and written to by the developer.</p> |
| document.getElementById("console").appendChild(document.createTextNode(s + "\n")); |
| var e = new Error("hello"); |
| log("Creating new Error e"); |
| shouldBeTrue(' typeof(e.stack) == "string"'); |
| log("Deleting the stack property should make it undefined.") |
| shouldBeUndefined('e.stack'); |
| log("Writing to the stack property."); |
| e.stack = "Brand new stack!"; |
| shouldBeTrue('e.stack == "Brand new stack!"'); |
| successfullyParsed = true; |