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

Unified Diff: src/globals.h

Issue 577973002: ES6: Implement generator method shorthand (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: cleanup Created 6 years, 3 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 | « no previous file | src/preparser.h » ('j') | src/preparser.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/globals.h
diff --git a/src/globals.h b/src/globals.h
index 55bb57289d9018f35d9bf78037230556bae7ea50..75c131945497ccbc7080e56d80583550c4721dd5 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -771,7 +771,9 @@ inline bool IsValidFunctionKind(FunctionKind kind) {
return kind == FunctionKind::kNormalFunction ||
kind == FunctionKind::kArrowFunction ||
kind == FunctionKind::kGeneratorFunction ||
- kind == FunctionKind::kConciseMethod;
+ kind == FunctionKind::kConciseMethod ||
+ kind ==
+ (FunctionKind::kGeneratorFunction | FunctionKind::kConciseMethod);
Dmitry Lomov (no reviews) 2014/09/18 07:43:57 The comment in this function is now obsolete.
arv (Not doing code reviews) 2014/09/18 15:59:02 Done.
}
« no previous file with comments | « no previous file | src/preparser.h » ('j') | src/preparser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698