mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-04 05:33:50 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			630 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			630 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
/// Copyright (c) 2012 Ecma International.  All rights reserved. 
 | 
						|
/// This code is governed by the BSD license found in the LICENSE file.
 | 
						|
 | 
						|
var NotEarlyErrorString = "NotEarlyError";
 | 
						|
var EarlyErrorRePat = "^((?!" + NotEarlyErrorString + ").)*$";
 | 
						|
var NotEarlyError = new Error(NotEarlyErrorString);
 | 
						|
 | 
						|
function Test262Error(message) {
 | 
						|
    this.message = message || "";
 | 
						|
}
 | 
						|
 | 
						|
Test262Error.prototype.toString = function () {
 | 
						|
    return "Test262Error: " + this.message;
 | 
						|
};
 | 
						|
 | 
						|
var $ERROR;
 | 
						|
$ERROR = function $ERROR(message) {
 | 
						|
    throw new Test262Error(message);
 | 
						|
};
 | 
						|
 | 
						|
function testFailed(message) {
 | 
						|
    $ERROR(message);
 | 
						|
}
 |