зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1468406 part 1 - Add NativeObject::realm(), forwarding to JSObject::realm() for now. r=luke
This commit is contained in:
Родитель
a3edf6e096
Коммит
079317b9d7
|
@ -1475,6 +1475,7 @@ class NativeObject : public ShapedObject
|
|||
// Native objects are never wrappers, so a native object always has a realm
|
||||
// and global.
|
||||
inline js::GlobalObject& global() const;
|
||||
JS::Realm* realm() const { return JSObject::realm(); }
|
||||
|
||||
/* JIT Accessors */
|
||||
static size_t offsetOfElements() { return offsetof(NativeObject, elements_); }
|
||||
|
|
Загрузка…
Ссылка в новой задаче