Chromium Code Reviews| Index: src/runtime/runtime-scopes.cc |
| diff --git a/src/runtime/runtime-scopes.cc b/src/runtime/runtime-scopes.cc |
| index a6c2c06ec9868e1c4600a2cf483393c4fc2eb4b7..5b4deb72287de8084acc25690dec89c28ed0fa17 100644 |
| --- a/src/runtime/runtime-scopes.cc |
| +++ b/src/runtime/runtime-scopes.cc |
| @@ -294,7 +294,7 @@ Object* DeclareLookupSlot(Isolate* isolate, Handle<String> name, |
| DCHECK(context->IsBlockContext()); |
| object = isolate->factory()->NewJSObject( |
| isolate->context_extension_function()); |
| - Handle<Object> extension = |
| + Handle<HeapObject> extension = |
| isolate->factory()->NewSloppyBlockWithEvalContextExtension( |
| handle(context->scope_info()), object); |
| context->set_extension(*extension); |
| @@ -306,7 +306,7 @@ Object* DeclareLookupSlot(Isolate* isolate, Handle<String> name, |
| DCHECK(context->IsFunctionContext()); |
| object = |
| isolate->factory()->NewJSObject(isolate->context_extension_function()); |
| - context->set_extension(*object); |
| + context->set_extension(HeapObject::cast(*object)); |
|
Michael Starzinger
2015/11/30 13:02:48
nit: Explicit cast should not be necessary, as it
Benedikt Meurer
2015/11/30 13:04:20
Done.
|
| } |
| RETURN_FAILURE_ON_EXCEPTION(isolate, JSObject::SetOwnPropertyIgnoreAttributes( |