[gjs/mozjs102: 13/14] js: Update IWYU comments for jsapi.h




commit 60f0798ec3b5e194ce5495f5089731dd4c35ffaa
Author: Philip Chimento <philip chimento gmail com>
Date:   Tue Jul 26 00:13:56 2022 -0700

    js: Update IWYU comments for jsapi.h
    
    Since more functions will move out of jsapi.h in the future, it'll be
    useful to know why exactly we are including it.

 gi/arg-cache.cpp       | 2 +-
 gi/cwrapper.h          | 4 ++--
 gi/fundamental.cpp     | 2 +-
 gjs/engine.cpp         | 2 +-
 gjs/global.cpp         | 2 +-
 modules/cairo-path.cpp | 2 +-
 modules/console.cpp    | 2 +-
 modules/print.cpp      | 2 +-
 test/gjs-tests.cpp     | 2 +-
 9 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/gi/arg-cache.cpp b/gi/arg-cache.cpp
index 7c2694685..ce814d6b4 100644
--- a/gi/arg-cache.cpp
+++ b/gi/arg-cache.cpp
@@ -26,7 +26,7 @@
 #include <js/Utility.h>  // for UniqueChars
 #include <js/Value.h>
 #include <js/experimental/TypedData.h>
-#include <jsapi.h>        // for JS_TypeOfValue
+#include <jsapi.h>        // for InformalValueTypeName, JS_TypeOfValue
 #include <jsfriendapi.h>  // for JS_GetObjectFunction
 #include <jspubtd.h>      // for JSTYPE_FUNCTION
 
diff --git a/gi/cwrapper.h b/gi/cwrapper.h
index cc13d6d68..71198df0c 100644
--- a/gi/cwrapper.h
+++ b/gi/cwrapper.h
@@ -23,8 +23,8 @@
 #include <js/RootingAPI.h>
 #include <js/TypeDecls.h>
 #include <js/Value.h>
-#include <jsapi.h>
-#include <jspubtd.h>
+#include <jsapi.h>  // for JSFUN_CONSTRUCTOR, JS_NewPlainObject, JS_GetFuncti...
+#include <jspubtd.h>  // for JSProto_Object, JSProtoKey, JSProto_TypeError
 
 #include "gjs/jsapi-util.h"
 #include "gjs/macros.h"
diff --git a/gi/fundamental.cpp b/gi/fundamental.cpp
index 9705ca9c6..d2f591e37 100644
--- a/gi/fundamental.cpp
+++ b/gi/fundamental.cpp
@@ -17,7 +17,7 @@
 #include <js/RootingAPI.h>
 #include <js/TypeDecls.h>
 #include <js/Utility.h>  // for UniqueChars
-#include <jsapi.h>       // for InformalValueTypeName
+#include <jsapi.h>       // for InformalValueTypeName, JS_NewObjectWithGivenP...
 #include <mozilla/HashTable.h>
 
 #include "gi/arg-inl.h"
diff --git a/gjs/engine.cpp b/gjs/engine.cpp
index e7a53fb6e..d0f05e7d5 100644
--- a/gjs/engine.cpp
+++ b/gjs/engine.cpp
@@ -25,7 +25,7 @@
 #include <js/TypeDecls.h>
 #include <js/Warnings.h>
 #include <js/experimental/SourceHook.h>
-#include <jsapi.h>  // for InitSelfHostedCode, JS_Destr...
+#include <jsapi.h>  // for JS_SetGlobalJitCompilerOption
 #include <mozilla/UniquePtr.h>
 
 #include "gjs/context-private.h"
diff --git a/gjs/global.cpp b/gjs/global.cpp
index 848b41566..84addc1bd 100644
--- a/gjs/global.cpp
+++ b/gjs/global.cpp
@@ -30,7 +30,7 @@
 #include <js/SourceText.h>
 #include <js/TypeDecls.h>
 #include <js/Utility.h>  // for UniqueChars
-#include <jsapi.h>       // for AutoSaveExceptionState, ...
+#include <jsapi.h>       // for JS_IdToValue, JS_InitReflectParse
 
 #include "gjs/atoms.h"
 #include "gjs/context-private.h"
diff --git a/modules/cairo-path.cpp b/modules/cairo-path.cpp
index b2762f5f7..b6b0726c6 100644
--- a/modules/cairo-path.cpp
+++ b/modules/cairo-path.cpp
@@ -11,7 +11,7 @@
 #include <js/PropertySpec.h>
 #include <js/RootingAPI.h>
 #include <js/TypeDecls.h>
-#include <jsapi.h>
+#include <jsapi.h>  // for JS_NewObjectWithGivenProto
 
 #include "modules/cairo-private.h"
 
diff --git a/modules/console.cpp b/modules/console.cpp
index 2f4e19610..228ee413d 100644
--- a/modules/console.cpp
+++ b/modules/console.cpp
@@ -42,7 +42,7 @@
 #include <js/Value.h>
 #include <js/ValueArray.h>
 #include <js/Warnings.h>
-#include <jsapi.h>  // for JS_IsExceptionPending, Exce...
+#include <jsapi.h>  // for JS_NewPlainObject
 
 #include "gjs/atoms.h"
 #include "gjs/context-private.h"
diff --git a/modules/print.cpp b/modules/print.cpp
index c861da493..7e0504f84 100644
--- a/modules/print.cpp
+++ b/modules/print.cpp
@@ -19,7 +19,7 @@
 #include <js/TypeDecls.h>
 #include <js/Utility.h>  // for UniqueChars
 #include <js/Value.h>
-#include <jsapi.h>
+#include <jsapi.h>  // for JS_NewPlainObject
 
 #include "gjs/global.h"
 #include "gjs/jsapi-util.h"
diff --git a/test/gjs-tests.cpp b/test/gjs-tests.cpp
index 852ee11d0..49011bba1 100644
--- a/test/gjs-tests.cpp
+++ b/test/gjs-tests.cpp
@@ -27,7 +27,7 @@
 #include <js/TypeDecls.h>
 #include <js/Utility.h>  // for UniqueChars
 #include <js/Value.h>
-#include <jsapi.h>
+#include <jsapi.h>    // for JS_GetClassObject
 #include <jspubtd.h>  // for JSProto_Number
 #include <mozilla/Span.h>  // for MakeStringSpan
 


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