Index: src/full-codegen/full-codegen.cc |
diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc |
index 35c074db38ef90d47dd2106a960c37612ac4215a..e6581b994fd2bdb71107d9d0e9c9907539959c20 100644 |
--- a/src/full-codegen/full-codegen.cc |
+++ b/src/full-codegen/full-codegen.cc |
@@ -1330,8 +1330,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()); |
} |