mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-01 03:57:30 +09:00
Bug 1317397: Only set lastIndex for global or sticky RegExps in RegExpBuiltinExec per ES2017
This commit is contained in:
parent
401d677e47
commit
78ce3bf8ff
13 changed files with 419 additions and 57 deletions
|
|
@ -7,7 +7,7 @@ function test() {
|
|||
pattern.lastIndex = 3;
|
||||
var result = pattern.exec(string);
|
||||
assertEq(result, null);
|
||||
assertEq(pattern.lastIndex, 0);
|
||||
assertEq(pattern.lastIndex, 3);
|
||||
}
|
||||
|
||||
for (let i = 0; i < 10; i++) {
|
||||
|
|
@ -18,7 +18,7 @@ function test2() {
|
|||
pattern.lastIndex = 3;
|
||||
var result = pattern.test(string);
|
||||
assertEq(result, false);
|
||||
assertEq(pattern.lastIndex, 0);
|
||||
assertEq(pattern.lastIndex, 3);
|
||||
}
|
||||
|
||||
for (let i = 0; i < 10; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue