3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script>
9 Object.defineProperty(Array.prototype, "push", {
10 get: function () { throw new Error("FAIL"); }
12 Object.defineProperty(Math, "max", {
13 get: function () { throw new Error("FAIL"); }
20 InspectorTest.evaluateInConsole("foo()");
21 InspectorTest.runAfterPendingDispatches(step1);
25 InspectorTest.dumpConsoleMessages();
26 InspectorTest.completeTest();
32 <body onload="runTest()">
34 Tests that overriding global methods (like Array.prototype.push, Math.max) will not break the inspector.