Merge pull request #356 from anba/regexp-cleanup

Clean-up test comments and remove invalid tests
This commit is contained in:
Brian Terlson 2015-07-09 16:45:55 -07:00
commit 1bc6441cae
55 changed files with 228 additions and 221 deletions

View File

@ -1,24 +0,0 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// Ecma International makes this code available under the terms and conditions set
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
// "Use Terms"). Any redistribution of this code must retain the above
// copyright and this notice and otherwise comply with the Use Terms.
/*---
es5id: 15.10.2.15-3-1
description: >
Pattern - SyntaxError was thrown when 'A' does not contain exactly
one character (15.10.2.5 step 3)
includes: [runTestCase.js]
---*/
function testcase() {
try {
var regExp = new RegExp("^[/w-c]$");
return false;
} catch (e) {
return e instanceof SyntaxError;
}
}
runTestCase(testcase);

View File

@ -1,24 +0,0 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// Ecma International makes this code available under the terms and conditions set
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
// "Use Terms"). Any redistribution of this code must retain the above
// copyright and this notice and otherwise comply with the Use Terms.
/*---
es5id: 15.10.2.15-3-2
description: >
Pattern - SyntaxError was thrown when 'B' does not contain exactly
one character (15.10.2.5 step 3)
includes: [runTestCase.js]
---*/
function testcase() {
try {
var regExp = new RegExp("^[a-/w]$");
return false;
} catch (e) {
return e instanceof SyntaxError;
}
}
runTestCase(testcase);

View File

@ -10,16 +10,8 @@ description: >
Pattern - SyntaxError was thrown when one character in CharSet 'A'
greater than one character in CharSet 'B' (15.10.2.15
CharacterRange step 6)
includes: [runTestCase.js]
---*/
function testcase() {
try {
var regExp = new RegExp("^[z-a]$");
return false;
} catch (e) {
return e instanceof SyntaxError;
}
}
runTestCase(testcase);
assert.throws(SyntaxError, function() {
var regExp = new RegExp("^[z-a]$");
});

View File

@ -1,22 +0,0 @@
// Copyright (c) 2012 Ecma International. All rights reserved.
// Ecma International makes this code available under the terms and conditions set
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
// "Use Terms"). Any redistribution of this code must retain the above
// copyright and this notice and otherwise comply with the Use Terms.
/*---
es5id: 15.10.2.2-1
description: Pattern - SyntaxError was thrown when compile a pattern
includes: [runTestCase.js]
---*/
function testcase() {
try {
var regExp = new RegExp("\\");
return false;
} catch (e) {
return e instanceof SyntaxError;
}
}
runTestCase(testcase);

View File

@ -9,16 +9,8 @@ es5id: 15.10.2.5-3-1
description: >
Term - SyntaxError was thrown when max is finite and less than min
(15.10.2.5 step 3)
includes: [runTestCase.js]
---*/
function testcase() {
try {
var regExp = new RegExp("0{2,1}");
return false;
} catch (e) {
return e instanceof SyntaxError;
}
}
runTestCase(testcase);
assert.throws(SyntaxError, function() {
var regExp = new RegExp("0{2,1}");
});

View File

@ -7,14 +7,10 @@
/*---
es5id: 15.10.4.1-1
description: >
RegExp - no TypeError is thrown when pattern is an object whose
[[Class]] property is 'RegExp' and flags is not undefined
includes: [runTestCase.js]
RegExp - no TypeError is thrown when pattern is an object and
has a [[RegExpMatcher]] internal slot, and flags is not undefined
---*/
function testcase() {
var regObj = new RegExp();
var regExpObj = new RegExp(regObj, "g");
return regExpObj.global;
}
runTestCase(testcase);
var regObj = new RegExp();
var regExpObj = new RegExp(regObj, "g");
assert(regExpObj.global);

View File

@ -9,16 +9,8 @@ es5id: 15.10.4.1-2
description: >
RegExp - the thrown error is SyntaxError instead of RegExpError
when the characters of 'P' do not have the syntactic form Pattern
includes: [runTestCase.js]
---*/
function testcase() {
try {
var regExpObj = new RegExp('\\');
return false;
} catch (e) {
return e instanceof SyntaxError;
}
}
runTestCase(testcase);
assert.throws(SyntaxError, function() {
var regExpObj = new RegExp('\\');
});

View File

@ -9,16 +9,8 @@ es5id: 15.10.4.1-3
description: >
RegExp - the thrown error is SyntaxError instead of RegExpError
when 'F' contains any character other than 'g', 'i', or 'm'
includes: [runTestCase.js]
---*/
function testcase() {
try {
var regExpObj = new RegExp('abc', 'a');
return false;
} catch (e) {
return e instanceof SyntaxError;
}
}
runTestCase(testcase);
assert.throws(SyntaxError, function() {
var regExpObj = new RegExp('abc', 'a');
});

View File

@ -7,16 +7,6 @@
/*---
es5id: 15.10.4.1-4
description: RegExp - the SyntaxError is not thrown when flags is 'gim'
includes: [runTestCase.js]
---*/
function testcase() {
try {
var regExpObj = new RegExp('abc', 'gim');
return true;
} catch (e) {
return false;
}
}
runTestCase(testcase);
var regExpObj = new RegExp('abc', 'gim');

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T1
description: >
Checking if execution of "/[b-ac-e]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T10
description: >
Checking if execution of "/[\10b-G]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T11
description: >
Checking if execution of "/[\bd-G]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T12
description: >
Checking if execution of "/[\Bd-G]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T13
description: >
Checking if execution of "/[\td-G]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T14
description: >
Checking if execution of "/[\nd-G]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T15
description: >
Checking if execution of "/[\vd-G]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T16
description: >
Checking if execution of "/[\fd-G]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T17
description: >
Checking if execution of "/[\rd-G]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T18
description: >
Checking if execution of "/[\c0001d-G]/.exec("1")" leads to

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T19
description: >
Checking if execution of "/[\x0061d-G]/.exec("1")" leads to

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T2
description: >
Checking if execution of "/[a-dc-b]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T20
description: >
Checking if execution of "/[\u0061d-G]/.exec("a")" leads to

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T21
description: >
Checking if execution of "/[\ad-G]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T22
description: >
Checking if execution of "/[c-eb-a]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T23
description: >
Checking if execution of "/[b-G\d]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T24
description: >
Checking if execution of "/[b-G\D]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T25
description: >
Checking if execution of "/[b-G\s]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T26
description: >
Checking if execution of "/[b-G\S]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T27
description: >
Checking if execution of "/[b-G\w]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T28
description: >
Checking if execution of "/[b-G\W]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T29
description: >
Checking if execution of "/[b-G\0]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T3
description: >
Checking if execution of "/[\db-G]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T30
description: >
Checking if execution of "/[b-G\10]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T31
description: >
Checking if execution of "/[d-G\b]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T32
description: >
Checking if execution of "/[d-G\B]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T33
description: >
Checking if execution of "/[d-G\t]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T34
description: >
Checking if execution of "/[d-G\n]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T35
description: >
Checking if execution of "/[d-G\v]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T36
description: >
Checking if execution of "/[d-G\f]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T37
description: >
Checking if execution of "/[d-G\r]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T38
description: >
Checking if execution of "/[d-G\c0001]/.exec("1")" leads to

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T39
description: >
Checking if execution of "/[d-G\x0061]/.exec("1")" leads to

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T4
description: >
Checking if execution of "/[\Db-G]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T40
description: >
Checking if execution of "/[d-G\u0061]/.exec("a")" leads to

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T41
description: >
Checking if execution of "/[d-G\a]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T5
description: >
Checking if execution of "/[\sb-G]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T6
description: >
Checking if execution of "/[\Sb-G]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T7
description: >
Checking if execution of "/[\wb-G]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T8
description: >
Checking if execution of "/[\Wb-G]/.exec("a")" leads to throwing

View File

@ -5,8 +5,11 @@
info: >
The internal helper function CharacterRange takes two CharSet parameters A and B and performs the
following:
If A does not contain exactly one character or B does not contain exactly one character then throw
a SyntaxError exception
2. Let a be the one character in CharSet A.
3. Let b be the one character in CharSet B.
4. Let i be the character value of character a.
5. Let j be the character value of character b.
6. If i > j, throw a SyntaxError exception.
es5id: 15.10.2.15_A1_T9
description: >
Checking if execution of "/[\0b-G]/.exec("a")" leads to throwing

View File

@ -6,7 +6,7 @@ info: >
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
es5id: 15.10.4.1_A5_T3
description: Checking by using eval, try to use eval("\"migg\"") as F
description: Checking by using eval, try to use eval("\"migr\"") as F
---*/
//CHECK#1

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: RegExp instance has not [[call]] property
info: RegExp instance has no [[Call]] internal method
es5id: 15.10.7_A1_T1
description: Checking if call of RegExp instance fails
---*/

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: RegExp instance has not [[call]] property
info: RegExp instance has no [[Call]] internal method
es5id: 15.10.7_A1_T2
description: Checking if call of RegExp("a|b","g")() fails
---*/

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: RegExp instance has not [[construct]] property
info: RegExp instance has no [[Construct]] internal method
es5id: 15.10.7_A2_T1
description: Checking if creating new RegExp instance fails
---*/

View File

@ -2,7 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: RegExp instance has not [[construct]] property
info: RegExp instance has no [[Construct]] internal method
es5id: 15.10.7_A2_T2
description: Checking if creating "new RegExp" instance fails
---*/