chromium/third_party/blink/web_tests/fast/js/regress/resources/regress-pre.js

description("JSRegress/" + ("" + window.location).split('/').pop().split('.')[0]);
_JSRegress_didSucceed = true;
_JSRegress_oldOnError = window.onerror;
window.onerror = function(message) {
    debug("FAIL caught exception: " + message);
    _JSRegress_didSucceed = false;
    _JSRegress_oldOnError.apply(this, arguments);
}