summaryrefslogtreecommitdiff
path: root/modules
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 /modules
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 'modules')
-rw-r--r--modules/cairo-context.cpp3
-rw-r--r--modules/cairo-region.cpp3
-rw-r--r--modules/console.cpp2
-rw-r--r--modules/print.cpp1
-rw-r--r--modules/system.cpp3
5 files changed, 9 insertions, 3 deletions
diff --git a/modules/cairo-context.cpp b/modules/cairo-context.cpp
index 356ba456..2f59a686 100644
--- a/modules/cairo-context.cpp
+++ b/modules/cairo-context.cpp
@@ -13,13 +13,14 @@
#include <js/Array.h> // for JS::NewArrayObject
#include <js/CallArgs.h>
#include <js/Conversions.h>
+#include <js/PropertyAndElement.h>
#include <js/PropertyDescriptor.h> // for JSPROP_READONLY
#include <js/PropertySpec.h>
#include <js/RootingAPI.h>
#include <js/TypeDecls.h>
#include <js/Utility.h> // for UniqueChars
#include <js/Value.h>
-#include <jsapi.h> // for JS_SetElement
+#include <jsapi.h> // for JS_NewPlainObject
#include "gi/arg-inl.h"
#include "gi/arg.h"
diff --git a/modules/cairo-region.cpp b/modules/cairo-region.cpp
index a6333f77..84c449f4 100644
--- a/modules/cairo-region.cpp
+++ b/modules/cairo-region.cpp
@@ -9,12 +9,13 @@
#include <js/CallArgs.h>
#include <js/Conversions.h>
+#include <js/PropertyAndElement.h>
#include <js/PropertyDescriptor.h> // for JSPROP_READONLY
#include <js/PropertySpec.h>
#include <js/RootingAPI.h>
#include <js/TypeDecls.h>
#include <js/Value.h>
-#include <jsapi.h> // for JS_GetPropertyById, JS_SetPropert...
+#include <jsapi.h> // for JS_NewPlainObject
#include "gi/arg-inl.h"
#include "gi/arg.h"
diff --git a/modules/console.cpp b/modules/console.cpp
index 33c189f9..2f4e1961 100644
--- a/modules/console.cpp
+++ b/modules/console.cpp
@@ -27,12 +27,14 @@
#include <glib.h>
#include <glib/gprintf.h> // for g_fprintf
+#include <js/CallAndConstruct.h>
#include <js/CallArgs.h>
#include <js/CharacterEncoding.h> // for JS_EncodeStringToUTF8
#include <js/CompilationAndEvaluation.h>
#include <js/CompileOptions.h>
#include <js/ErrorReport.h>
#include <js/Exception.h>
+#include <js/PropertyAndElement.h>
#include <js/RootingAPI.h>
#include <js/SourceText.h>
#include <js/TypeDecls.h>
diff --git a/modules/print.cpp b/modules/print.cpp
index e483446c..c861da49 100644
--- a/modules/print.cpp
+++ b/modules/print.cpp
@@ -13,6 +13,7 @@
#include <js/CharacterEncoding.h> // for JS_EncodeStringToUTF8
#include <js/Conversions.h>
#include <js/Exception.h>
+#include <js/PropertyAndElement.h> // for JS_DefineFunctions
#include <js/PropertySpec.h> // for JS_FN, JSFunctionSpec, JS_FS_END
#include <js/RootingAPI.h>
#include <js/TypeDecls.h>
diff --git a/modules/system.cpp b/modules/system.cpp
index 0f441096..9c43830e 100644
--- a/modules/system.cpp
+++ b/modules/system.cpp
@@ -18,13 +18,14 @@
#include <js/Date.h> // for ResetTimeZone
#include <js/GCAPI.h> // for JS_GC
#include <js/JSON.h>
+#include <js/PropertyAndElement.h>
#include <js/PropertyDescriptor.h> // for JSPROP_READONLY
#include <js/PropertySpec.h>
#include <js/RootingAPI.h>
#include <js/TypeDecls.h>
#include <js/Value.h> // for NullValue
#include <js/friend/DumpFunctions.h>
-#include <jsapi.h> // for JS_DefinePropertyById, JS_DefineF...
+#include <jsapi.h> // for JS_GetFunctionObject, JS_NewPlainObject
#include <jsfriendapi.h> // for GetFunctionNativeReserved, NewFunctionByIdW...
#include "gi/object.h"