test262/harness/sta.js

20 lines
467 B
JavaScript
Raw Normal View History

/// Copyright (c) 2012 Ecma International. All rights reserved.
2015-07-17 17:42:45 +02:00
/// This code is governed by the BSD license found in the LICENSE file.
function Test262Error(message) {
this.message = message || "";
}
Test262Error.prototype.toString = function () {
2014-10-24 16:18:37 +02:00
return "Test262Error: " + this.message;
};
var $ERROR;
$ERROR = function $ERROR(message) {
throw new Test262Error(message);
};
function testFailed(message) {
$ERROR(message);
}