2012-02-29 23:23:47 +01:00
|
|
|
/// 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.
|
2011-02-03 21:27:00 +01:00
|
|
|
|
2011-09-27 01:12:46 +02:00
|
|
|
function Test262Error(message) {
|
2014-08-01 13:38:31 +02:00
|
|
|
this.message = message || "";
|
2011-09-27 01:12:46 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
Test262Error.prototype.toString = function () {
|
2014-10-24 16:18:37 +02:00
|
|
|
return "Test262Error: " + this.message;
|
2011-09-27 01:12:46 +02:00
|
|
|
};
|
|
|
|
|
2014-08-01 13:38:31 +02:00
|
|
|
var $ERROR;
|
|
|
|
$ERROR = function $ERROR(message) {
|
2011-09-27 01:12:46 +02:00
|
|
|
throw new Test262Error(message);
|
2014-08-01 13:38:31 +02:00
|
|
|
};
|
2011-09-27 01:12:46 +02:00
|
|
|
|
2014-08-01 13:38:31 +02:00
|
|
|
function testFailed(message) {
|
|
|
|
$ERROR(message);
|
2011-09-27 01:12:46 +02:00
|
|
|
}
|