mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-03 21:24:30 +01:00 
			
		
		
		
	``` $ python tools/lint/lint.py --whitelist lint.whitelist harness/*.js Linting 25 files. Linting complete. 0 errors found. ``` - Renames detachArrayBuffer-$262.detachArrayBuffer.js -> detachArrayBuffer-host-detachArrayBuffer.js (previous naming prevents command-click from terminal) Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
		
			
				
	
	
		
			24 lines
		
	
	
		
			592 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			592 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
// Copyright (c) 2012 Ecma International.  All rights reserved.
 | 
						|
// This code is governed by the BSD license found in the LICENSE file.
 | 
						|
/*---
 | 
						|
description: |
 | 
						|
    Provides both:
 | 
						|
 | 
						|
    - An error class to avoid false positives when testing for thrown exceptions
 | 
						|
    - A function to explicitly throw an exception using the Test262Error class
 | 
						|
---*/
 | 
						|
 | 
						|
 | 
						|
function Test262Error(message) {
 | 
						|
  this.message = message || "";
 | 
						|
}
 | 
						|
 | 
						|
Test262Error.prototype.toString = function () {
 | 
						|
  return "Test262Error: " + this.message;
 | 
						|
};
 | 
						|
 | 
						|
var $ERROR;
 | 
						|
$ERROR = function $ERROR(message) {
 | 
						|
  throw new Test262Error(message);
 | 
						|
};
 |