| Index: src/contexts-inl.h
|
| diff --git a/src/contexts-inl.h b/src/contexts-inl.h
|
| index 67358a7a1dd3e2029fb6d9ccadaa7e437c4ebe47..67257ae0d71d794a9c75e92728223a498042069d 100644
|
| --- a/src/contexts-inl.h
|
| +++ b/src/contexts-inl.h
|
| @@ -56,9 +56,13 @@ Context* Context::previous() {
|
| void Context::set_previous(Context* context) { set(PREVIOUS_INDEX, context); }
|
|
|
|
|
| -bool Context::has_extension() { return extension() != nullptr; }
|
| -Object* Context::extension() { return get(EXTENSION_INDEX); }
|
| -void Context::set_extension(Object* object) { set(EXTENSION_INDEX, object); }
|
| +bool Context::has_extension() { return !extension()->IsTheHole(); }
|
| +HeapObject* Context::extension() {
|
| + return HeapObject::cast(get(EXTENSION_INDEX));
|
| +}
|
| +void Context::set_extension(HeapObject* object) {
|
| + set(EXTENSION_INDEX, object);
|
| +}
|
|
|
|
|
| JSModule* Context::module() { return JSModule::cast(get(EXTENSION_INDEX)); }
|
|
|