[gjs/mozjs91: 5/21] JS_GetClass -> JS::GetClass
- From: Evan Welsh <ewlsh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/mozjs91: 5/21] JS_GetClass -> JS::GetClass
- Date: Sun, 11 Jul 2021 04:08:04 +0000 (UTC)
commit 0e0cc60488efc1358eb3f860baa7d30c7f2cfb90
Author: Evan Welsh <contact evanwelsh com>
Date: Sat Jul 10 20:23:10 2021 -0700
JS_GetClass -> JS::GetClass
gi/param.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gi/param.cpp b/gi/param.cpp
index 9bc43be7..cc903a73 100644
--- a/gi/param.cpp
+++ b/gi/param.cpp
@@ -12,7 +12,7 @@
#include <js/RootingAPI.h>
#include <js/TypeDecls.h>
#include <js/Utility.h> // for UniqueChars
-#include <jsapi.h> // for JS_GetClass, JS_GetPropertyById
+#include <jsapi.h> // for JS::GetClass, JS_GetPropertyById
#include <jspubtd.h> // for JSProto_TypeError
#include "gi/cwrapper.h"
@@ -215,7 +215,7 @@ gjs_param_from_g_param(JSContext *context,
JS::RootedObject proto(context, gjs_lookup_param_prototype(context));
- obj = JS_NewObjectWithGivenProto(context, JS_GetClass(proto), proto);
+ obj = JS_NewObjectWithGivenProto(context, JS::GetClass(proto), proto);
GJS_INC_COUNTER(param);
auto* priv = new Param(gparam);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]