diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-05-30 21:14:43 +0200 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-06-01 11:48:07 +0000 |
commit | 86187199216ea46d879f35b93d7731185bdc598e (patch) | |
tree | 2eb8cf214b8d2020a364bcf01b7ecb030101098e /js/src/vm/GlobalObject.h | |
parent | b6db7da98af264b55161bc93e6020fe404cfc627 (diff) | |
download | UXP-86187199216ea46d879f35b93d7731185bdc598e.tar UXP-86187199216ea46d879f35b93d7731185bdc598e.tar.gz UXP-86187199216ea46d879f35b93d7731185bdc598e.tar.lz UXP-86187199216ea46d879f35b93d7731185bdc598e.tar.xz UXP-86187199216ea46d879f35b93d7731185bdc598e.zip |
Issue #1570 - Implement globalThis
This resolves #1570
Diffstat (limited to 'js/src/vm/GlobalObject.h')
-rw-r--r-- | js/src/vm/GlobalObject.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/js/src/vm/GlobalObject.h b/js/src/vm/GlobalObject.h index 3fd2762f8..720f63e69 100644 --- a/js/src/vm/GlobalObject.h +++ b/js/src/vm/GlobalObject.h @@ -121,6 +121,7 @@ class GlobalObject : public NativeObject FOR_OF_PIC_CHAIN, MODULE_RESOLVE_HOOK, WINDOW_PROXY, + GLOBAL_THIS_RESOLVED, /* Total reserved-slot count for global objects. */ RESERVED_SLOTS @@ -171,6 +172,8 @@ class GlobalObject : public NativeObject static bool initBuiltinConstructor(JSContext* cx, Handle<GlobalObject*> global, JSProtoKey key, HandleObject ctor, HandleObject proto); + static bool maybeResolveGlobalThis(JSContext* cx, Handle<GlobalObject*> global, bool* resolved); + void setConstructor(JSProtoKey key, const Value& v) { MOZ_ASSERT(key <= JSProto_LIMIT); setSlot(APPLICATION_SLOTS + key, v); |