Destructuring: add more parssing tests.
authordslomov <dslomov@chromium.org>
Wed, 29 Apr 2015 13:03:26 +0000 (06:03 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 29 Apr 2015 13:03:35 +0000 (13:03 +0000)
R=arv@chromium.org
BUG=v8:811
LOG=N

Review URL: https://codereview.chromium.org/1112073002

Cr-Commit-Position: refs/heads/master@{#28131}

test/cctest/test-parsing.cc

index 0d91292..c51aa95 100644 (file)
@@ -6369,7 +6369,9 @@ TEST(DestructuringPositiveTests) {
     "[{x:x, y:y}, [a,b,c]]",
     "[a,,b]",
     "{42 : x}",
+    "{42e-2 : x}",
     "{'hi' : x}",
+    "{var: x}",
     NULL};
   // clang-format on
   static const ParserFlag always_flags[] = {kAllowHarmonyDestructuring};