Reviewers: arv,

Message:
PTAL


Description:
Update tests in preparation for shipping classes.

[email protected]
BUG=v8:3330
LOG=N

Please review this at https://codereview.chromium.org/788773003/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+19, -9 lines):
  M test/mjsunit/regress/regress-parse-object-literal.js
  M test/mjsunit/strict-mode.js
  M test/preparser/strict-function-statement.pyt
  M test/test262/test262.status


Index: test/mjsunit/regress/regress-parse-object-literal.js
diff --git a/test/mjsunit/regress/regress-parse-object-literal.js b/test/mjsunit/regress/regress-parse-object-literal.js index 96d63c2c1285db91fa2d4d416545638bae2230ca..93725ebadb3c74ae37b19e08b5c049595df69835 100644
--- a/test/mjsunit/regress/regress-parse-object-literal.js
+++ b/test/mjsunit/regress/regress-parse-object-literal.js
@@ -24,6 +24,8 @@
 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+//
+// Flags: --noharmony-classes --noharmony-object-literals

 // Should throw, not crash.
 assertThrows("var o = { get /*space*/ () {} }");
Index: test/mjsunit/strict-mode.js
diff --git a/test/mjsunit/strict-mode.js b/test/mjsunit/strict-mode.js
index 0fafd80a8dfcbced4ec75e2f7052a4142d1db996..62d003f9fabb75e62c032767864a2861d483fd01 100644
--- a/test/mjsunit/strict-mode.js
+++ b/test/mjsunit/strict-mode.js
@@ -26,6 +26,7 @@
 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

 // Flags: --turbo-deoptimization --noharmony-scoping
+// Flags: --noharmony-classes --noharmony-object-literals

 function CheckStrictMode(code, exception) {
   assertDoesNotThrow(code);
Index: test/preparser/strict-function-statement.pyt
diff --git a/test/preparser/strict-function-statement.pyt b/test/preparser/strict-function-statement.pyt index 5542ee175942a2053ecdd9dead407b9ed1c9c096..cc3d7bb582ff8108133a76b19fd7f2ac439ec808 100644
--- a/test/preparser/strict-function-statement.pyt
+++ b/test/preparser/strict-function-statement.pyt
@@ -31,7 +31,10 @@
 # scopes (global scope, function scope, and nested function scope).
 def StrictTest(name, source, legacy):
   if legacy:
-    extra_flags = ["--noharmony-scoping"]
+    extra_flags = [
+      "--noharmony-scoping",
+      "--noharmony-classes",
+      "--noharmony-object-literals"]
   else:
     extra_flags = []
   Test(name, '"use strict";\n' + source, "strict_function",
Index: test/test262/test262.status
diff --git a/test/test262/test262.status b/test/test262/test262.status
index 82a962b021076d54f8a14ced71b1649efd497300..d32f8f30a36f484b0a613e5c833a48bac554b844 100644
--- a/test/test262/test262.status
+++ b/test/test262/test262.status
@@ -37,15 +37,19 @@

   ############################### ES6 ###################################
   # ES6 allows block-local functions.
-  'Sbp_A1_T1': [PASS, FAIL],
-  'Sbp_A2_T1': [PASS, FAIL],
-  'Sbp_A2_T2': [PASS, FAIL],
-  'Sbp_A3_T1': [PASS, FAIL],
-  'Sbp_A3_T2': [PASS, FAIL],
-  'Sbp_A4_T1': [PASS, FAIL],
-  'Sbp_A4_T2': [PASS, FAIL],
+  'Sbp_A1_T1': [PASS, FAIL_OK],
+  'Sbp_A2_T1': [PASS, FAIL_OK],
+  'Sbp_A2_T2': [PASS, FAIL_OK],
+  'Sbp_A3_T1': [PASS, FAIL_OK],
+  'Sbp_A3_T2': [PASS, FAIL_OK],
+  'Sbp_A4_T1': [PASS, FAIL_OK],
+  'Sbp_A4_T2': [PASS, FAIL_OK],
'Sbp_A5_T1': [PASS], # Test is broken (strict reference to unbound variable)
-  'Sbp_A5_T2': [PASS, FAIL],
+  'Sbp_A5_T2': [PASS, FAIL_OK],
+
+  # Passes in ES6 since {__arr} syntax is parsed as object literal.
+  'S12.1_A4_T2': [PASS, FAIL_OK],
+  'S12.6.4_A15': [PASS, FAIL_OK],

   ######################## NEEDS INVESTIGATION ###########################



--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to