| Index: src/ia32/full-codegen-ia32.cc
|
| diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc
|
| index 777ec6891f76d340a02e1321245e977b4b4bf51e..eb4c1bc31f259666199edad12e4de1e3727aed2c 100644
|
| --- a/src/ia32/full-codegen-ia32.cc
|
| +++ b/src/ia32/full-codegen-ia32.cc
|
| @@ -1462,7 +1462,8 @@ void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) {
|
| if (var->scope()->DeclarationScope() != scope()->DeclarationScope()) {
|
| skip_init_check = false;
|
| } else if (var->is_this()) {
|
| - CHECK((info_->shared_info()->kind() & kSubclassConstructor) != 0);
|
| + CHECK(info_->function() != nullptr &&
|
| + (info_->function()->kind() & kSubclassConstructor) != 0);
|
| // TODO(dslomov): implement 'this' hole check elimination.
|
| skip_init_check = false;
|
| } else {
|
|
|