| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index bbdefc14a5942122092dd2f82345b4b4d73a2bb6..32b7b2d83a145f20fb0ae762e84df5d84c3ab9b4 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -7418,6 +7418,8 @@ class JSGlobalProxy : public JSObject {
|
| // Casting.
|
| static inline JSGlobalProxy* cast(Object* obj);
|
|
|
| + bool IsDetached() { return GetPrototype()->IsNull(); }
|
| +
|
| // Dispatched behavior.
|
| DECLARE_PRINTER(JSGlobalProxy)
|
| DECLARE_VERIFIER(JSGlobalProxy)
|
| @@ -7487,6 +7489,10 @@ class JSGlobalObject: public GlobalObject {
|
| static Handle<PropertyCell> EnsurePropertyCell(Handle<JSGlobalObject> global,
|
| Handle<Name> name);
|
|
|
| + bool IsDetached() {
|
| + return JSGlobalProxy::cast(global_receiver())->IsDetached();
|
| + }
|
| +
|
| // Dispatched behavior.
|
| DECLARE_PRINTER(JSGlobalObject)
|
| DECLARE_VERIFIER(JSGlobalObject)
|
|
|