summaryrefslogtreecommitdiff
path: root/gi/object.cpp
diff options
context:
space:
mode:
authorEvan Welsh <contact@evanwelsh.com>2021-07-10 20:14:56 -0700
committerPhilip Chimento <philip.chimento@gmail.com>2022-01-16 13:29:11 -0800
commit83e4c835cee6f8187cefd52b6a5fefca792ec6b5 (patch)
treed8e74874b98b281640a39445a74b2e2f3494da17 /gi/object.cpp
parent3cab147af05d0ac243fecdba28c88d7cc785b24c (diff)
downloadgjs-83e4c835cee6f8187cefd52b6a5fefca792ec6b5.tar.gz
Some Object-related functions have moved to js/Object.h
- JS_[Get,Set]Private is now JS::[Get,Set]Private - JS_GetReservedSlot is now JS::GetReservedSlot - JS_SetReservedSlot still exists, but we'll update it now See https://bugzilla.mozilla.org/show_bug.cgi?id=1663365
Diffstat (limited to 'gi/object.cpp')
-rw-r--r--gi/object.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gi/object.cpp b/gi/object.cpp
index a3baa729..72a7530a 100644
--- a/gi/object.cpp
+++ b/gi/object.cpp
@@ -32,6 +32,7 @@
#include <js/GCVector.h> // for MutableWrappedPtrOperations
#include <js/HeapAPI.h>
#include <js/MemoryFunctions.h> // for AddAssociatedMemory, RemoveAssoci...
+#include <js/Object.h>
#include <js/PropertyDescriptor.h> // for JSPROP_PERMANENT, JSPROP_READONLY
#include <js/TypeDecls.h>
#include <js/Utility.h> // for UniqueChars
@@ -2687,7 +2688,7 @@ ObjectInstance* ObjectInstance::new_for_gobject(JSContext* cx, GObject* gobj) {
ObjectInstance* priv = new ObjectInstance(prototype, obj);
- JS_SetPrivate(obj, priv);
+ JS::SetPrivate(obj, priv);
g_object_ref_sink(gobj);
priv->associate_js_gobject(cx, obj, gobj);