From 173e98e00b14db854d293108d559b79071dfaab2 Mon Sep 17 00:00:00 2001
From: Leo Balter <leonardo.balter@gmail.com>
Date: Mon, 26 Feb 2018 10:12:09 -0500
Subject: [PATCH] Revert "Additional tests for QuantifiableAssertion" (#1458)

---
 .../regexp/invalid-optional-lookbehind.js     | 20 -------------------
 .../invalid-optional-negative-lookbehind.js   | 20 -------------------
 .../regexp/invalid-range-lookbehind.js        | 20 -------------------
 .../invalid-range-negative-lookbehind.js      | 20 -------------------
 .../regexp/u-invalid-optional-lookbehind.js   | 20 -------------------
 .../u-invalid-optional-negative-lookahead.js  | 20 -------------------
 .../u-invalid-optional-negative-lookbehind.js | 20 -------------------
 ...js => u-invalid-quantifiable-assertion.js} |  0
 .../regexp/u-invalid-range-lookahead.js       | 20 -------------------
 .../regexp/u-invalid-range-lookbehind.js      | 20 -------------------
 .../u-invalid-range-negative-lookahead.js     | 20 -------------------
 .../u-invalid-range-negative-lookbehind.js    | 20 -------------------
 12 files changed, 220 deletions(-)
 delete mode 100644 test/language/literals/regexp/invalid-optional-lookbehind.js
 delete mode 100644 test/language/literals/regexp/invalid-optional-negative-lookbehind.js
 delete mode 100644 test/language/literals/regexp/invalid-range-lookbehind.js
 delete mode 100644 test/language/literals/regexp/invalid-range-negative-lookbehind.js
 delete mode 100644 test/language/literals/regexp/u-invalid-optional-lookbehind.js
 delete mode 100644 test/language/literals/regexp/u-invalid-optional-negative-lookahead.js
 delete mode 100644 test/language/literals/regexp/u-invalid-optional-negative-lookbehind.js
 rename test/language/literals/regexp/{u-invalid-optional-lookahead.js => u-invalid-quantifiable-assertion.js} (100%)
 delete mode 100644 test/language/literals/regexp/u-invalid-range-lookahead.js
 delete mode 100644 test/language/literals/regexp/u-invalid-range-lookbehind.js
 delete mode 100644 test/language/literals/regexp/u-invalid-range-negative-lookahead.js
 delete mode 100644 test/language/literals/regexp/u-invalid-range-negative-lookbehind.js

diff --git a/test/language/literals/regexp/invalid-optional-lookbehind.js b/test/language/literals/regexp/invalid-optional-lookbehind.js
deleted file mode 100644
index 0e46d6b251..0000000000
--- a/test/language/literals/regexp/invalid-optional-lookbehind.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// 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.";
-
-/.(?<=.)?/;
diff --git a/test/language/literals/regexp/invalid-optional-negative-lookbehind.js b/test/language/literals/regexp/invalid-optional-negative-lookbehind.js
deleted file mode 100644
index b972bc6764..0000000000
--- a/test/language/literals/regexp/invalid-optional-negative-lookbehind.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// 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.";
-
-/.(?<!.)?/;
diff --git a/test/language/literals/regexp/invalid-range-lookbehind.js b/test/language/literals/regexp/invalid-range-lookbehind.js
deleted file mode 100644
index 2019433e82..0000000000
--- a/test/language/literals/regexp/invalid-range-lookbehind.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// 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}/;
diff --git a/test/language/literals/regexp/invalid-range-negative-lookbehind.js b/test/language/literals/regexp/invalid-range-negative-lookbehind.js
deleted file mode 100644
index c02122bbb1..0000000000
--- a/test/language/literals/regexp/invalid-range-negative-lookbehind.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// 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}/;
diff --git a/test/language/literals/regexp/u-invalid-optional-lookbehind.js b/test/language/literals/regexp/u-invalid-optional-lookbehind.js
deleted file mode 100644
index d36b4e0c9d..0000000000
--- a/test/language/literals/regexp/u-invalid-optional-lookbehind.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// 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;
diff --git a/test/language/literals/regexp/u-invalid-optional-negative-lookahead.js b/test/language/literals/regexp/u-invalid-optional-negative-lookahead.js
deleted file mode 100644
index e12dcae6e6..0000000000
--- a/test/language/literals/regexp/u-invalid-optional-negative-lookahead.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// 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;
diff --git a/test/language/literals/regexp/u-invalid-optional-negative-lookbehind.js b/test/language/literals/regexp/u-invalid-optional-negative-lookbehind.js
deleted file mode 100644
index 6697fa05fa..0000000000
--- a/test/language/literals/regexp/u-invalid-optional-negative-lookbehind.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// 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;
diff --git a/test/language/literals/regexp/u-invalid-optional-lookahead.js b/test/language/literals/regexp/u-invalid-quantifiable-assertion.js
similarity index 100%
rename from test/language/literals/regexp/u-invalid-optional-lookahead.js
rename to test/language/literals/regexp/u-invalid-quantifiable-assertion.js
diff --git a/test/language/literals/regexp/u-invalid-range-lookahead.js b/test/language/literals/regexp/u-invalid-range-lookahead.js
deleted file mode 100644
index 1c6efb12c7..0000000000
--- a/test/language/literals/regexp/u-invalid-range-lookahead.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// 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;
diff --git a/test/language/literals/regexp/u-invalid-range-lookbehind.js b/test/language/literals/regexp/u-invalid-range-lookbehind.js
deleted file mode 100644
index a690848698..0000000000
--- a/test/language/literals/regexp/u-invalid-range-lookbehind.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// 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;
diff --git a/test/language/literals/regexp/u-invalid-range-negative-lookahead.js b/test/language/literals/regexp/u-invalid-range-negative-lookahead.js
deleted file mode 100644
index 18d3c1b126..0000000000
--- a/test/language/literals/regexp/u-invalid-range-negative-lookahead.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// 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;
diff --git a/test/language/literals/regexp/u-invalid-range-negative-lookbehind.js b/test/language/literals/regexp/u-invalid-range-negative-lookbehind.js
deleted file mode 100644
index 7bb80a2499..0000000000
--- a/test/language/literals/regexp/u-invalid-range-negative-lookbehind.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// 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;
-- 
GitLab