summaryrefslogtreecommitdiff
path: root/gjs/module.cpp
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2022-07-26 00:08:11 -0700
committerPhilip Chimento <philip.chimento@gmail.com>2022-08-07 16:42:03 -0700
commitd1cf26179322b2b87fb980e3b244b5e24dba8dd6 (patch)
tree8373a6cd63b77596519afa559fc247701820c3a2 /gjs/module.cpp
parent6c08d5296b53f745e08ffd8c16c8ebabe55f46fc (diff)
downloadgjs-d1cf26179322b2b87fb980e3b244b5e24dba8dd6.tar.gz
js: Various functions moved out of jsapi.h
- js/CallAndConstruct.h: Now contains JS::Call, JS::Construct, and related - js/Debug.h: Already existed, but now contains JS_DefineDebuggerObject - js/GlobalObject.h: Now contains JS::CurrentGlobalOrNull - js/PropertyAndElement.h: Now contains APIs for getting, setting, and defining properties, as well as array elements - js/ScriptPrivate.h: Now contains JS::GetScriptPrivate/SetScriptPrivate - js/Stack.h: Now contains APIs that have to do with the call stack
Diffstat (limited to 'gjs/module.cpp')
-rw-r--r--gjs/module.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/gjs/module.cpp b/gjs/module.cpp
index c8d4b21c..cf9eaf37 100644
--- a/gjs/module.cpp
+++ b/gjs/module.cpp
@@ -12,6 +12,7 @@
#include <gio/gio.h>
#include <glib.h>
+#include <js/CallAndConstruct.h>
#include <js/CallArgs.h>
#include <js/CharacterEncoding.h> // for ConstUTF8CharsZ
#include <js/Class.h>
@@ -21,21 +22,24 @@
#include <js/ErrorReport.h> // for JS_ReportOutOfMemory
#include <js/Exception.h>
#include <js/GCVector.h> // for RootedVector
+#include <js/GlobalObject.h> // for CurrentGlobalOrNull
#include <js/Id.h>
#include <js/Modules.h>
#include <js/Object.h>
#include <js/Promise.h>
+#include <js/PropertyAndElement.h>
#include <js/PropertyDescriptor.h>
#include <js/Realm.h>
#include <js/RootingAPI.h>
+#include <js/ScriptPrivate.h>
#include <js/SourceText.h>
#include <js/String.h>
#include <js/TypeDecls.h>
#include <js/Utility.h> // for UniqueChars
#include <js/Value.h>
#include <js/ValueArray.h>
-#include <jsapi.h> // for JS_DefinePropertyById, ...
-#include <jsfriendapi.h> // for SetFunctionNativeReserved
+#include <jsapi.h> // for JS_GetFunctionObject, JS_Ne...
+#include <jsfriendapi.h> // for NewFunctionWithReserved
#include <mozilla/Maybe.h>
#include "gjs/atoms.h"