5 window
.isOnErrorTest
= true;
7 <script src=
"../../resources/js-test.js"></script>
8 <script src=
"resources/onerror-test.js"></script>
12 description("This tests that 'window.onerror' is called on the window object.");
13 var thisInsideOnerror
= null;
14 window
.onerror = function (message
) {
15 thisInsideOnerror
= this;
16 shouldBe('thisInsideOnerror', 'window');