summaryrefslogtreecommitdiff
path: root/test
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 /test
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 'test')
-rw-r--r--test/gjs-test-call-args.cpp2
-rw-r--r--test/gjs-tests.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/test/gjs-test-call-args.cpp b/test/gjs-test-call-args.cpp
index fccd9c22..15454d2d 100644
--- a/test/gjs-test-call-args.cpp
+++ b/test/gjs-test-call-args.cpp
@@ -11,13 +11,13 @@
#include <js/CallArgs.h>
#include <js/CompilationAndEvaluation.h>
#include <js/CompileOptions.h>
+#include <js/PropertyAndElement.h>
#include <js/PropertySpec.h>
#include <js/RootingAPI.h>
#include <js/SourceText.h>
#include <js/String.h>
#include <js/TypeDecls.h>
#include <js/Utility.h> // for UniqueChars
-#include <jsapi.h> // for JS_DefineFunctions
#include "gjs/jsapi-util-args.h"
#include "gjs/jsapi-util.h"
diff --git a/test/gjs-tests.cpp b/test/gjs-tests.cpp
index ecf986fb..852ee11d 100644
--- a/test/gjs-tests.cpp
+++ b/test/gjs-tests.cpp
@@ -21,6 +21,7 @@
#include <js/CharacterEncoding.h>
#include <js/Exception.h>
#include <js/Id.h>
+#include <js/PropertyAndElement.h>
#include <js/RootingAPI.h>
#include <js/String.h>
#include <js/TypeDecls.h>