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