[gjs/mozjs91: 7/21] JS_StringHasLatin1Chars -> JS::StringHasLatin1Chars




commit 4dec0d4f87bb97f674625724503fddde117a5a2f
Author: Evan Welsh <contact evanwelsh com>
Date:   Sat Jul 10 20:25:36 2021 -0700

    JS_StringHasLatin1Chars -> JS::StringHasLatin1Chars

 gjs/byteArray.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gjs/byteArray.cpp b/gjs/byteArray.cpp
index 8c59e837..62208c69 100644
--- a/gjs/byteArray.cpp
+++ b/gjs/byteArray.cpp
@@ -16,6 +16,7 @@
 #include <js/GCAPI.h>  // for AutoCheckCannotGC
 #include <js/PropertySpec.h>
 #include <js/RootingAPI.h>
+#include <js/String.h>
 #include <js/TypeDecls.h>
 #include <js/Utility.h>   // for UniqueChars
 #include <js/experimental/TypedData.h>
@@ -269,7 +270,7 @@ from_string_func(JSContext *context,
             JS::AutoCheckCannotGC nogc;
             size_t len;
 
-            if (JS_StringHasLatin1Chars(str)) {
+            if (JS::StringHasLatin1Chars(str)) {
                 const JS::Latin1Char *chars =
                     JS_GetLatin1StringCharsAndLength(context, nogc, str, &len);
                 if (chars == NULL)


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