Index: src/full-codegen/full-codegen.cc |
diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc |
index d7e95fbbec57c3f111202a7c376cfa7a652be3d5..8cb9dc39f071b742a35183540cbda5fa1fe0e4e8 100644 |
--- a/src/full-codegen/full-codegen.cc |
+++ b/src/full-codegen/full-codegen.cc |
@@ -1273,8 +1273,7 @@ void FullCodeGenerator::VisitClassLiteral(ClassLiteral* lit) { |
EmitClassDefineProperties(lit); |
- if (lit->scope() != NULL) { |
- DCHECK_NOT_NULL(lit->class_variable_proxy()); |
+ if (lit->class_variable_proxy() != nullptr) { |
EmitVariableAssignment(lit->class_variable_proxy()->var(), |
Token::INIT_CONST, lit->ProxySlot()); |
} |