Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: test/cctest/test-parsing.cc

Issue 1138153003: Use ExpressionClassifier to identify valid arrow function formals (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Fix ASAN stack-check regression by bumping stack limit in test Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 3545 matching lines...) Expand 10 before | Expand all | Expand 10 after
3556 "[] => {}", 3556 "[] => {}",
3557 "([]) => {}", 3557 "([]) => {}",
3558 "(a, []) => {}", 3558 "(a, []) => {}",
3559 "([], a) => {}", 3559 "([], a) => {}",
3560 "(a = b) => {}", 3560 "(a = b) => {}",
3561 "(a = b, c) => {}", 3561 "(a = b, c) => {}",
3562 "(a, b = c) => {}", 3562 "(a, b = c) => {}",
3563 "(foo ? bar : baz) => {}", 3563 "(foo ? bar : baz) => {}",
3564 "(a, foo ? bar : baz) => {}", 3564 "(a, foo ? bar : baz) => {}",
3565 "(foo ? bar : baz, a) => {}", 3565 "(foo ? bar : baz, a) => {}",
3566 "(a.b, c) => {}",
3567 "(c, a.b) => {}",
3568 "(a['b'], c) => {}",
3569 "(c, a['b']) => {}",
3566 NULL 3570 NULL
3567 }; 3571 };
3568 3572
3569 // The test is quite slow, so run it with a reduced set of flags. 3573 // The test is quite slow, so run it with a reduced set of flags.
3570 static const ParserFlag flags[] = {kAllowLazy}; 3574 static const ParserFlag flags[] = {kAllowLazy};
3571 static const ParserFlag always_flags[] = { kAllowHarmonyArrowFunctions }; 3575 static const ParserFlag always_flags[] = { kAllowHarmonyArrowFunctions };
3572 RunParserSyncTest(context_data, statement_data, kError, flags, 3576 RunParserSyncTest(context_data, statement_data, kError, flags,
3573 arraysize(flags), always_flags, arraysize(always_flags)); 3577 arraysize(flags), always_flags, arraysize(always_flags));
3574 } 3578 }
3575 3579
(...skipping 2891 matching lines...) Expand 10 before | Expand all | Expand 10 after
6467 const char* data[] = { 6471 const char* data[] = {
6468 "yield", 6472 "yield",
6469 "[yield]", 6473 "[yield]",
6470 "{ x : yield }", 6474 "{ x : yield }",
6471 NULL}; 6475 NULL};
6472 // clang-format on 6476 // clang-format on
6473 RunParserSyncTest(context_data, data, kError, NULL, 0, always_flags, 6477 RunParserSyncTest(context_data, data, kError, NULL, 0, always_flags,
6474 arraysize(always_flags)); 6478 arraysize(always_flags));
6475 } 6479 }
6476 } 6480 }
OLDNEW
« src/parser.cc ('K') | « src/preparser.cc ('k') | test/mjsunit/regress/regress-1132.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698