[gjs/mozjs91: 49/64] JS_StringHasLatin1Chars -> JS::StringHasLatin1Chars




commit 061acdd104c44259a7ad0f3ac190d9fe7674324a
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 05c25034..d550568d 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>
@@ -164,7 +165,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]