mirror of https://github.com/tc39/test262.git
Use slice in RegExp lookBehind test
This change allows the test to be run on engines that do not implement Annex B.
This commit is contained in:
parent
68205eb76c
commit
e1fb459313
|
@ -14,7 +14,7 @@ info: |
|
|||
features: [regexp-lookbehind]
|
||||
---*/
|
||||
|
||||
var oob_subject = "abcdefghijklmnabcdefghijklmn".substr(14);
|
||||
var oob_subject = "abcdefghijklmnabcdefghijklmn".slice(14);
|
||||
assert.sameValue(oob_subject.match(/(?=(abcdefghijklmn))(?<=\1)a/i), null, "");
|
||||
assert.sameValue(oob_subject.match(/(?=(abcdefghijklmn))(?<=\1)a/), null, "");
|
||||
assert.sameValue("abcdefgabcdefg".substr(1).match(/(?=(abcdefg))(?<=\1)/), null, "");
|
||||
assert.sameValue("abcdefgabcdefg".slice(1).match(/(?=(abcdefg))(?<=\1)/), null, "");
|
||||
|
|
Loading…
Reference in New Issue