[gjs/mozjs91: 3/18] js: Update header includes for SpiderMonkey 91




commit 3d5bba0325be29e554f7c648222a39f37c788721
Author: Evan Welsh <contact evanwelsh com>
Date:   Sat Jul 10 19:50:43 2021 -0700

    js: Update header includes for SpiderMonkey 91
    
    Adjust the includes where necessary to reflect new header files.

 gi/arg-cache.cpp      | 1 +
 gi/arg.cpp            | 1 +
 gi/cwrapper.h         | 1 +
 gi/value.cpp          | 1 +
 gjs/byteArray.cpp     | 1 +
 gjs/context.cpp       | 1 +
 gjs/deprecation.cpp   | 1 +
 gjs/gjs_pch.hh        | 4 +++-
 gjs/stack.cpp         | 1 +
 gjs/text-encoding.cpp | 1 +
 modules/system.cpp    | 1 +
 11 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/gi/arg-cache.cpp b/gi/arg-cache.cpp
index f4d8136e..4ac45e54 100644
--- a/gi/arg-cache.cpp
+++ b/gi/arg-cache.cpp
@@ -20,6 +20,7 @@
 #include <js/TypeDecls.h>
 #include <js/Utility.h>  // for UniqueChars
 #include <js/Value.h>
+#include <js/experimental/TypedData.h>
 #include <jsapi.h>        // for JS_TypeOfValue
 #include <jsfriendapi.h>  // for JS_GetObjectFunction
 #include <jspubtd.h>      // for JSTYPE_FUNCTION
diff --git a/gi/arg.cpp b/gi/arg.cpp
index 63e8e03c..ed8be377 100644
--- a/gi/arg.cpp
+++ b/gi/arg.cpp
@@ -24,6 +24,7 @@
 #include <js/Utility.h>  // for UniqueChars
 #include <js/Value.h>
 #include <js/ValueArray.h>
+#include <js/experimental/TypedData.h>
 #include <jsapi.h>        // for JS_ReportOutOfMemory, JS_GetElement
 #include <jsfriendapi.h>  // for JS_IsUint8Array, JS_GetObjectFunc...
 
diff --git a/gi/cwrapper.h b/gi/cwrapper.h
index 436eefd2..6a0b24f0 100644
--- a/gi/cwrapper.h
+++ b/gi/cwrapper.h
@@ -17,6 +17,7 @@
 #include <js/Class.h>
 #include <js/ComparisonOperators.h>
 #include <js/Id.h>
+#include <js/Object.h>
 #include <js/RootingAPI.h>
 #include <js/TypeDecls.h>
 #include <js/Value.h>
diff --git a/gi/value.cpp b/gi/value.cpp
index ec64f0ac..d1a10182 100644
--- a/gi/value.cpp
+++ b/gi/value.cpp
@@ -21,6 +21,7 @@
 #include <js/Utility.h>  // for UniqueChars
 #include <js/Value.h>
 #include <js/ValueArray.h>
+#include <js/experimental/TypedData.h>
 #include <jsapi.h>  // for InformalValueTypeName, JS_ClearPendingException
 #include <jsfriendapi.h>
 
diff --git a/gjs/byteArray.cpp b/gjs/byteArray.cpp
index 60826ab2..7bb713dc 100644
--- a/gjs/byteArray.cpp
+++ b/gjs/byteArray.cpp
@@ -18,6 +18,7 @@
 #include <js/RootingAPI.h>
 #include <js/TypeDecls.h>
 #include <js/Utility.h>   // for UniqueChars
+#include <js/experimental/TypedData.h>
 #include <jsapi.h>        // for JS_DefineFunctionById, JS_DefineFun...
 #include <jsfriendapi.h>  // for JS_NewUint8ArrayWithBuffer, GetUint...
 
diff --git a/gjs/context.cpp b/gjs/context.cpp
index 10a80a0c..8930502d 100644
--- a/gjs/context.cpp
+++ b/gjs/context.cpp
@@ -56,6 +56,7 @@
 #include <js/UniquePtr.h>
 #include <js/Value.h>
 #include <js/ValueArray.h>
+#include <js/friend/DumpFunctions.h>
 #include <jsapi.h>        // for JS_IsExceptionPending, ...
 #include <jsfriendapi.h>  // for DumpHeap, IgnoreNurseryObjects
 #include <mozilla/UniquePtr.h>
diff --git a/gjs/deprecation.cpp b/gjs/deprecation.cpp
index 3fdd64d4..6d313983 100644
--- a/gjs/deprecation.cpp
+++ b/gjs/deprecation.cpp
@@ -19,6 +19,7 @@
 #include <js/TypeDecls.h>
 #include <js/Utility.h>  // for UniqueChars
 #include <js/Value.h>
+#include <js/friend/DumpFunctions.h>
 #include <jsapi.h>        // for MaxFrames, CaptureCurrentStack
 #include <jsfriendapi.h>  // for FormatStackDump
 
diff --git a/gjs/gjs_pch.hh b/gjs/gjs_pch.hh
index 8de386a4..0e79f1c6 100644
--- a/gjs/gjs_pch.hh
+++ b/gjs/gjs_pch.hh
@@ -50,7 +50,6 @@
 #endif
 #include <inttypes.h>
 #include <iomanip>
-#include <js/RequiredDefines.h>  // check-pch: ignore, part of mozjs cflags
 #include <js/AllocPolicy.h>
 #include <js/Array.h>
 #include <js/ArrayBuffer.h>
@@ -75,6 +74,7 @@
 #include <js/Initialization.h>
 #include <js/MemoryFunctions.h>
 #include <js/Modules.h>
+#include <js/Object.h>
 #include <js/ProfilingCategory.h>
 #include <js/ProfilingStack.h>
 #include <js/Promise.h>
@@ -96,6 +96,8 @@
 #include <js/Wrapper.h>
 #include <js/experimental/CodeCoverage.h>
 #include <js/experimental/SourceHook.h>
+#include <js/experimental/TypedData.h>
+#include <js/friend/DumpFunctions.h>
 #include <jsapi.h>
 #include <jsfriendapi.h>
 #include <jspubtd.h>
diff --git a/gjs/stack.cpp b/gjs/stack.cpp
index a223ad0d..46aab583 100644
--- a/gjs/stack.cpp
+++ b/gjs/stack.cpp
@@ -10,6 +10,7 @@
 #include <glib.h>
 
 #include <js/TypeDecls.h>
+#include <js/friend/DumpFunctions.h>
 #include <jsfriendapi.h>  // for DumpBacktrace
 
 #include "gjs/context.h"
diff --git a/gjs/text-encoding.cpp b/gjs/text-encoding.cpp
index a77bd19f..06b8ae71 100644
--- a/gjs/text-encoding.cpp
+++ b/gjs/text-encoding.cpp
@@ -24,6 +24,7 @@
 #include <js/RootingAPI.h>
 #include <js/TypeDecls.h>
 #include <js/Utility.h>   // for UniqueChars
+#include <js/experimental/TypedData.h>
 #include <jsapi.h>        // for JS_DefineFunctionById, JS_DefineFun...
 #include <jsfriendapi.h>  // for JS_NewUint8ArrayWithBuffer, GetUint...
 
diff --git a/modules/system.cpp b/modules/system.cpp
index 0cd16b6e..76e5dc66 100644
--- a/modules/system.cpp
+++ b/modules/system.cpp
@@ -23,6 +23,7 @@
 #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 <jsfriendapi.h>  // for DumpHeap, IgnoreNurseryObjects
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]