fpizlo@apple.com | 135a946 | 2013-01-20 20:06:05 +0000 | [diff] [blame] | 1 | description("JSRegress/" + ("" + window.location).split('/').pop().split('.')[0]); |
| 2 | _JSRegress_didSucceed = true; |
| 3 | _JSRegress_oldOnError = window.onerror; |
| 4 | window.onerror = function(message) { |
| 5 | debug("FAIL caught exception: " + message); |
| 6 | _JSRegress_didSucceed = false; |
| 7 | _JSRegress_oldOnError.apply(this, arguments); |
| 8 | } |
oliver@apple.com | 22b40a6 | 2013-12-17 00:01:01 +0000 | [diff] [blame] | 9 | |
| 10 | if (typeof noInline == "undefined") { |
| 11 | if (window.testRunner) |
| 12 | noInline =window.testRunner.neverInlineFunction || function(){}; |
| 13 | else |
| 14 | noInline = function(){} |
| 15 | } |
| 16 | |