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

Unified Diff: src/globals.h

Issue 1590873002: Make generators non-constructable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Adapt test262.status Created 4 years, 11 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/bootstrapper.cc ('k') | src/objects.h » ('j') | no next file with comments »
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 67bdb63b86ee7a008e1fe0eebaab710c6d0eec60..c6a5444d8ac94fa2d29cefa2a5350b6033a27f51 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -1024,8 +1024,9 @@ inline bool IsClassConstructor(FunctionKind kind) {
inline bool IsConstructable(FunctionKind kind, LanguageMode mode) {
if (IsAccessorFunction(kind)) return false;
- if (IsConciseMethod(kind) && !IsGeneratorFunction(kind)) return false;
+ if (IsConciseMethod(kind)) return false;
if (IsArrowFunction(kind)) return false;
+ if (IsGeneratorFunction(kind)) return false;
if (is_strong(mode)) return IsClassConstructor(kind);
return true;
}
« no previous file with comments | « src/bootstrapper.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698