Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 9aab688c6a0492ecabd546c95969e7168437ce67..e9cc11172664b92470eb0a9d0c530b4cbd3e303f 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -804,7 +804,7 @@ static bool CheckSuperConstructorCall(CompilationInfo* info) { |
FunctionLiteral* function = info->function(); |
if (FLAG_experimental_classes) return true; |
if (!function->uses_super_constructor_call()) return true; |
- if (function->is_default_constructor()) return true; |
+ if (IsDefaultConstructor(function->kind())) return true; |
ZoneList<Statement*>* body = function->body(); |
CHECK(body->length() > 0); |