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

Unified Diff: test/cctest/test-parsing.cc

Issue 2685293003: [parsing] Fix maybe-assigned for top-level class declarations. (Closed)
Patch Set: Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/parsing/pattern-rewriter.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-parsing.cc
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc
index aeb55722b9c8092057a1aced88f6ceec9920d072..ba8bfbfa4f20b60d942e957126ae2e8cc3295614 100644
--- a/test/cctest/test-parsing.cc
+++ b/test/cctest/test-parsing.cc
@@ -3853,12 +3853,21 @@ TEST(MaybeAssignedTopLevel) {
i::Factory* factory = isolate->factory();
const char* prefixes[] = {
- "let foo; ", "let foo = 0; ",
- "let [foo] = [1]; ", "let {foo} = {foo: 2}; ",
- "let {foo=3} = {}; ", "function foo() {}; ",
- "var foo; ", "var foo = 0; ",
- "var [foo] = [1]; ", "var {foo} = {foo: 2}; ",
- "var {foo=3} = {}; ", "function* foo() {}; ",
+ "let foo; ",
+ "let foo = 0; ",
+ "let [foo] = [1]; ",
+ "let {foo} = {foo: 2}; ",
+ "let {foo=3} = {}; ",
+ "var foo; ",
+ "var foo = 0; ",
+ "var [foo] = [1]; ",
+ "var {foo} = {foo: 2}; ",
+ "var {foo=3} = {}; ",
+ "function foo() {}; ",
+ "function* foo() {}; ",
+ "async function foo() {}; ",
+ "class foo {}; ",
+ "class foo extends null {}; ",
};
const char* sources[] = {
"function bar() {foo = 42}; ext(bar); ext(foo)",
« no previous file with comments | « src/parsing/pattern-rewriter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698