diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2022-07-26 00:08:11 -0700 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2022-08-07 16:42:03 -0700 |
commit | d1cf26179322b2b87fb980e3b244b5e24dba8dd6 (patch) | |
tree | 8373a6cd63b77596519afa559fc247701820c3a2 /gi/object.cpp | |
parent | 6c08d5296b53f745e08ffd8c16c8ebabe55f46fc (diff) | |
download | gjs-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 'gi/object.cpp')
-rw-r--r-- | gi/object.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gi/object.cpp b/gi/object.cpp index 6cf97c72..7bceffa0 100644 --- a/gi/object.cpp +++ b/gi/object.cpp @@ -22,6 +22,7 @@ #include <glib-object.h> #include <glib.h> +#include <js/CallAndConstruct.h> // for IsCallable, JS_CallFunctionValue #include <js/CallArgs.h> #include <js/CharacterEncoding.h> #include <js/Class.h> @@ -31,6 +32,7 @@ #include <js/GCVector.h> // for MutableWrappedPtrOperations #include <js/HeapAPI.h> #include <js/MemoryFunctions.h> // for AddAssociatedMemory, RemoveAssoci... +#include <js/PropertyAndElement.h> #include <js/PropertyDescriptor.h> // for JSPROP_PERMANENT, JSPROP_READONLY #include <js/String.h> #include <js/Symbol.h> @@ -39,8 +41,8 @@ #include <js/Value.h> #include <js/ValueArray.h> #include <js/Warnings.h> -#include <jsapi.h> // for IsCallable -#include <jsfriendapi.h> // for JS_GetObjectFunction, IsFunctionO... +#include <jsapi.h> // for JS_GetFunctionObject, IdVector +#include <jsfriendapi.h> // for JS_GetObjectFunction, GetFunctionNativeReserved #include <mozilla/HashTable.h> #include "gi/arg-inl.h" |