mirror of
https://github.com/tc39/test262.git
synced 2025-07-22 13:34:38 +02:00
Removals that would have been propagated from my last conversion if
I'd used "hg addremove"
This commit is contained in:
parent
19ec143b0d
commit
4632b7bf47
@ -1,14 +0,0 @@
|
|||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/**
|
|
||||||
* NonEscapeSequence is not EscapeCharacter
|
|
||||||
*
|
|
||||||
* @path 07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A4.3_T3.js
|
|
||||||
* @description EscapeCharacter :: DecimalDigits :: 8
|
|
||||||
* @negative
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
|
||||||
"\8"
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
|||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/**
|
|
||||||
* NonEscapeSequence is not EscapeCharacter
|
|
||||||
*
|
|
||||||
* @path 07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A4.3_T4.js
|
|
||||||
* @description EscapeCharacter :: DecimalDigits :: 9
|
|
||||||
* @negative
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
|
||||||
"\9"
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
|||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/**
|
|
||||||
* NonEscapeSequence is not EscapeCharacter
|
|
||||||
*
|
|
||||||
* @path 07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A4.3_T5.js
|
|
||||||
* @description EscapeCharacter :: u
|
|
||||||
* @negative
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
|
||||||
"\u"
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
|||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/**
|
|
||||||
* NonEscapeSequence is not EscapeCharacter
|
|
||||||
*
|
|
||||||
* @path 07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A4.3_T6.js
|
|
||||||
* @description EscapeCharacter :: x
|
|
||||||
* @negative
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
|
||||||
"\x"
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
|||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/**
|
|
||||||
* HexEscapeSequence \X HexDigit HexDigit is incorrect
|
|
||||||
*
|
|
||||||
* @path 07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A6.4_T1.js
|
|
||||||
* @description Checking if execution of "\X01" passes
|
|
||||||
* @negative
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
|
||||||
"\X01"
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
|||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/**
|
|
||||||
* HexEscapeSequence \X HexDigit HexDigit is incorrect
|
|
||||||
*
|
|
||||||
* @path 07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A6.4_T2.js
|
|
||||||
* @description Checking if execution of "\X0A" passes
|
|
||||||
* @negative
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
|
||||||
"\X0A"
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
|||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/**
|
|
||||||
* UnicodeEscapeSequence \U HexDigit HexDigit HexDigit HexDigit is incorrect
|
|
||||||
*
|
|
||||||
* @path 07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A7.4_T1.js
|
|
||||||
* @description Checking if execution of "\U0001" passes
|
|
||||||
* @negative
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
|
||||||
"\U0001"
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
|||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/**
|
|
||||||
* UnicodeEscapeSequence \U HexDigit HexDigit HexDigit HexDigit is incorrect
|
|
||||||
*
|
|
||||||
* @path 07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A7.4_T2.js
|
|
||||||
* @description Checking if execution of "\U000A" passes
|
|
||||||
* @negative
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
|
||||||
"\U000A"
|
|
||||||
|
|
@ -1,49 +0,0 @@
|
|||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Only FormalParameterList as arguments list is allowed
|
|
||||||
*
|
|
||||||
* @path 13_Function_Definition/S13_A5.js
|
|
||||||
* @description Trying to use [arg1, arg2, arg3], (arg1, arg2, arg3), etc. as a FormalParameterList
|
|
||||||
*/
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
|
||||||
//CHECK#1
|
|
||||||
try{
|
|
||||||
eval("function __func([arg1, arg2, arg3]){return arguments.length;}");
|
|
||||||
$ERROR('#1: eval("function __func([arg1, arg2, arg3]){return arguments.length;}") lead to throwing exception');
|
|
||||||
} catch(e){
|
|
||||||
if(!(e instanceof SyntaxError)){
|
|
||||||
$ERROR('#1.1: eval("function __func([arg1, arg2, arg3]){return arguments.length;}") lead to throwing exception of SyntaxError. Actual: exception is '+e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
|
||||||
//CHECK#2
|
|
||||||
try{
|
|
||||||
eval("function __func((arg1, arg2, arg3)){return arguments.length;}");
|
|
||||||
$ERROR('#2: eval("function __func((arg1, arg2, arg3)){return arguments.length;}") lead to throwing exception')
|
|
||||||
} catch(e){
|
|
||||||
if(!(e instanceof SyntaxError)){
|
|
||||||
$ERROR('#2.1: eval("function __func((arg1, arg2, arg3)){return arguments.length;}") lead to throwing exception of SyntaxError. Actual: exception is '+e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
|
||||||
//CHECK#3
|
|
||||||
try{
|
|
||||||
eval("function __func(arg1, arg2, arg3,){return arguments.length;}");
|
|
||||||
$ERROR('#3: eval("function __func(arg1, arg2, arg3,){return arguments.length;}") lead to throwing exception')
|
|
||||||
} catch(e){
|
|
||||||
if(!(e instanceof SyntaxError)){
|
|
||||||
$ERROR('#3.1: eval("function __func(arg1, arg2, arg3,){return arguments.length;}") lead to throwing exception of SyntaxError. Actual: exception is '+e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
|||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/**
|
|
||||||
* If F contains any character other than 'g', 'i', or 'm', or if it contains the same one more than once, then throw a SyntaxError exception
|
|
||||||
*
|
|
||||||
* @path 15_Native/15.10_RegExp_Objects/15.10.4_The_RegExp_Constructor/S15.10.4.1_A5_T5.js
|
|
||||||
* @description Checking if using "{toString:function(){return "x";}}" as F leads to throwing the correct exception
|
|
||||||
*/
|
|
||||||
|
|
||||||
//CHECK#1
|
|
||||||
try {
|
|
||||||
$ERROR('#1.1: new RegExp("a|b|[a-b]",{toString:function(){return "x" throw SyntaxError. Actual: ' + (new RegExp("a|b|[a-b]",{toString:function(){return "x"}})));
|
|
||||||
} catch (e) {
|
|
||||||
if ((e instanceof SyntaxError) !== true) {
|
|
||||||
$ERROR('#1.2: new RegExp("a|b|[a-b]",{toString:function(){return "x" throw SyntaxError. Actual: ' + (e));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
|||||||
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The value of the internal [[Class]] property of the RegExp prototype object is "Object"
|
|
||||||
*
|
|
||||||
* @path 15_Native/15.10_RegExp_Objects/15.10.6_Properties_of_the_RegExp_Prototype_Object/S15.10.6_A2.js
|
|
||||||
* @description Checking performs with toString function
|
|
||||||
*/
|
|
||||||
|
|
||||||
RegExp.prototype.toString = Object.prototype.toString;
|
|
||||||
|
|
||||||
//CHECK#1
|
|
||||||
if (RegExp.prototype.toString() !== "[object " + "Object" + "]") {
|
|
||||||
$ERROR('#1: RegExp.prototype.toString = Object.prototype.toString; RegExp.prototype.toString() === "[object " + "Object" + "]". Actual: ' + RegExp.prototype.toString());
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user