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; |
} |