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

Unified Diff: src/parsing/parser-base.h

Issue 2567343004: [parser] Fix bug with non-static name method/property (Closed)
Patch Set: Created 4 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 | « no previous file | test/mjsunit/es6/function-name.js » ('j') | test/mjsunit/es6/function-name.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/parser-base.h
diff --git a/src/parsing/parser-base.h b/src/parsing/parser-base.h
index b0e72592922e47a60c04436324cf5eb8d69e0cfb..3efb207c1ff566b1d2e24bc0190d2b6447c8592a 100644
--- a/src/parsing/parser-base.h
+++ b/src/parsing/parser-base.h
@@ -2177,7 +2177,7 @@ ParserBase<Impl>::ParseClassPropertyDefinition(
is_computed_name, CHECK_OK_CUSTOM(EmptyClassLiteralProperty));
}
- if (!*has_name_static_property && is_static && impl()->IsName(name)) {
+ if (!*has_name_static_property && *is_static && impl()->IsName(name)) {
*has_name_static_property = true;
}
« no previous file with comments | « no previous file | test/mjsunit/es6/function-name.js » ('j') | test/mjsunit/es6/function-name.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698