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

Unified Diff: src/preparser.cc

Issue 792233008: ES6 computed property names (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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/preparser.h ('k') | src/runtime.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/preparser.cc
diff --git a/src/preparser.cc b/src/preparser.cc
index 1bd33409f002d3d1711c14557fdbdf9ed2b11c98..51cac17cfadf99fd497e72dff48653f561f49a4c 100644
--- a/src/preparser.cc
+++ b/src/preparser.cc
@@ -990,8 +990,10 @@ PreParserExpression PreParser::ParseClassLiteral(
if (Check(Token::SEMICOLON)) continue;
const bool in_class = true;
const bool is_static = false;
- ParsePropertyDefinition(NULL, in_class, is_static, &has_seen_constructor,
- CHECK_OK);
+ bool is_computed_name = false; // Classes do not care about computed
+ // property names here.
+ ParsePropertyDefinition(NULL, in_class, is_static, &is_computed_name,
+ &has_seen_constructor, CHECK_OK);
}
Expect(Token::RBRACE, CHECK_OK);
« no previous file with comments | « src/preparser.h ('k') | src/runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698