mirror of
https://github.com/tc39/test262.git
synced 2025-07-06 13:44:40 +02:00
This reverts commit 173e98e00b14db854d293108d559b79071dfaab2.
This commit is contained in:
parent
845407e0b6
commit
73b8d9c773
20
test/language/literals/regexp/invalid-optional-lookbehind.js
Normal file
20
test/language/literals/regexp/invalid-optional-lookbehind.js
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
// Copyright (C) 2018 Igalia S. L. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
/*---
|
||||||
|
esid: sec-regular-expressions-patterns
|
||||||
|
description: Lookbehinds are not treated as a QuantifiableAssertion
|
||||||
|
info: |
|
||||||
|
Term[U] ::
|
||||||
|
[~U] QuantifiableAssertion Quantifier
|
||||||
|
|
||||||
|
QuantifiableAssertion[N]::
|
||||||
|
( ? = Disjunction[~U, ?N] )
|
||||||
|
( ? ! Disjunction[~U, ?N] )
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
/.(?<=.)?/;
|
@ -0,0 +1,20 @@
|
|||||||
|
// Copyright (C) 2018 Igalia S. L. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
/*---
|
||||||
|
esid: sec-regular-expressions-patterns
|
||||||
|
description: Lookbehinds are not treated as a QuantifiableAssertion
|
||||||
|
info: |
|
||||||
|
Term[U] ::
|
||||||
|
[~U] QuantifiableAssertion Quantifier
|
||||||
|
|
||||||
|
QuantifiableAssertion[N]::
|
||||||
|
( ? = Disjunction[~U, ?N] )
|
||||||
|
( ? ! Disjunction[~U, ?N] )
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
/.(?<!.)?/;
|
20
test/language/literals/regexp/invalid-range-lookbehind.js
Normal file
20
test/language/literals/regexp/invalid-range-lookbehind.js
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
// Copyright (C) 2018 Igalia S. L. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
/*---
|
||||||
|
esid: sec-regular-expressions-patterns
|
||||||
|
description: Lookbehinds are not treated as a QuantifiableAssertion
|
||||||
|
info: |
|
||||||
|
Term[U] ::
|
||||||
|
[~U] QuantifiableAssertion Quantifier
|
||||||
|
|
||||||
|
QuantifiableAssertion[N]::
|
||||||
|
( ? = Disjunction[~U, ?N] )
|
||||||
|
( ? ! Disjunction[~U, ?N] )
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
/.(?<=.){2,3}/;
|
@ -0,0 +1,20 @@
|
|||||||
|
// Copyright (C) 2018 Igalia S. L. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
/*---
|
||||||
|
esid: sec-regular-expressions-patterns
|
||||||
|
description: Lookbehinds are not treated as a QuantifiableAssertion
|
||||||
|
info: |
|
||||||
|
Term[U] ::
|
||||||
|
[~U] QuantifiableAssertion Quantifier
|
||||||
|
|
||||||
|
QuantifiableAssertion[N]::
|
||||||
|
( ? = Disjunction[~U, ?N] )
|
||||||
|
( ? ! Disjunction[~U, ?N] )
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
/.(?<!.){2,3}/;
|
@ -0,0 +1,20 @@
|
|||||||
|
// Copyright (C) 2018 Igalia S. L. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
/*---
|
||||||
|
esid: sec-regular-expressions-patterns
|
||||||
|
description: Lookbehinds are not treated as a QuantifiableAssertion
|
||||||
|
info: |
|
||||||
|
Term[U] ::
|
||||||
|
[~U] QuantifiableAssertion Quantifier
|
||||||
|
|
||||||
|
QuantifiableAssertion[N]::
|
||||||
|
( ? = Disjunction[~U, ?N] )
|
||||||
|
( ? ! Disjunction[~U, ?N] )
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
/.(?<=.)?/u;
|
@ -0,0 +1,20 @@
|
|||||||
|
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
/*---
|
||||||
|
esid: sec-regular-expressions-patterns
|
||||||
|
es6id: B.1.4
|
||||||
|
description: Quantifiable assertions disallowed with `u` flag
|
||||||
|
info: |
|
||||||
|
The `u` flag precludes quantifiable assertions (even when Annex B is
|
||||||
|
honored)
|
||||||
|
|
||||||
|
Term[U] ::
|
||||||
|
[~U] QuantifiableAssertion Quantifier
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
/.(?!.)?/u;
|
@ -0,0 +1,20 @@
|
|||||||
|
// Copyright (C) 2018 Igalia S. L. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
/*---
|
||||||
|
esid: sec-regular-expressions-patterns
|
||||||
|
description: Lookbehinds are not treated as a QuantifiableAssertion
|
||||||
|
info: |
|
||||||
|
Term[U] ::
|
||||||
|
[~U] QuantifiableAssertion Quantifier
|
||||||
|
|
||||||
|
QuantifiableAssertion[N]::
|
||||||
|
( ? = Disjunction[~U, ?N] )
|
||||||
|
( ? ! Disjunction[~U, ?N] )
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
/.(?<!.)?/u;
|
20
test/language/literals/regexp/u-invalid-range-lookahead.js
Normal file
20
test/language/literals/regexp/u-invalid-range-lookahead.js
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
/*---
|
||||||
|
esid: sec-regular-expressions-patterns
|
||||||
|
es6id: B.1.4
|
||||||
|
description: Quantifiable assertions disallowed with `u` flag
|
||||||
|
info: |
|
||||||
|
The `u` flag precludes quantifiable assertions (even when Annex B is
|
||||||
|
honored)
|
||||||
|
|
||||||
|
Term[U] ::
|
||||||
|
[~U] QuantifiableAssertion Quantifier
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
/.(?=.){2,3}/u;
|
20
test/language/literals/regexp/u-invalid-range-lookbehind.js
Normal file
20
test/language/literals/regexp/u-invalid-range-lookbehind.js
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
// Copyright (C) 2018 Igalia S. L. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
/*---
|
||||||
|
esid: sec-regular-expressions-patterns
|
||||||
|
description: Lookbehinds are not treated as a QuantifiableAssertion
|
||||||
|
info: |
|
||||||
|
Term[U] ::
|
||||||
|
[~U] QuantifiableAssertion Quantifier
|
||||||
|
|
||||||
|
QuantifiableAssertion[N]::
|
||||||
|
( ? = Disjunction[~U, ?N] )
|
||||||
|
( ? ! Disjunction[~U, ?N] )
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
/.(?<=.){2,3}/u;
|
@ -0,0 +1,20 @@
|
|||||||
|
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
/*---
|
||||||
|
esid: sec-regular-expressions-patterns
|
||||||
|
es6id: B.1.4
|
||||||
|
description: Quantifiable assertions disallowed with `u` flag
|
||||||
|
info: |
|
||||||
|
The `u` flag precludes quantifiable assertions (even when Annex B is
|
||||||
|
honored)
|
||||||
|
|
||||||
|
Term[U] ::
|
||||||
|
[~U] QuantifiableAssertion Quantifier
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
/.(?!.){2,3}/u;
|
@ -0,0 +1,20 @@
|
|||||||
|
// Copyright (C) 2018 Igalia S. L. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
/*---
|
||||||
|
esid: sec-regular-expressions-patterns
|
||||||
|
description: Lookbehinds are not treated as a QuantifiableAssertion
|
||||||
|
info: |
|
||||||
|
Term[U] ::
|
||||||
|
[~U] QuantifiableAssertion Quantifier
|
||||||
|
|
||||||
|
QuantifiableAssertion[N]::
|
||||||
|
( ? = Disjunction[~U, ?N] )
|
||||||
|
( ? ! Disjunction[~U, ?N] )
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
/.(?<!.){2,3}/u;
|
Loading…
x
Reference in New Issue
Block a user