summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gjs/byteArray.c4
-rw-r--r--gjs/stack.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/gjs/byteArray.c b/gjs/byteArray.c
index 14d744e0..923e07ec 100644
--- a/gjs/byteArray.c
+++ b/gjs/byteArray.c
@@ -464,8 +464,8 @@ GJS_NATIVE_CONSTRUCTOR_DECLARE(byte_array)
* class as us, but if we're constructing an instance, the prototype
* has the same class.
*/
- obj_class = JS_GetClass(context, object);
- proto_class = JS_GetClass(context, proto);
+ obj_class = JS_GetClass(object);
+ proto_class = JS_GetClass(proto);
is_proto = (obj_class != proto_class);
diff --git a/gjs/stack.c b/gjs/stack.c
index 84e1c6af..26230228 100644
--- a/gjs/stack.c
+++ b/gjs/stack.c
@@ -69,7 +69,7 @@ jsvalue_to_string(JSContext* cx, jsval val, gboolean* is_string)
if (!value_str)
value = g_strdup("[unknown function]");
} else {
- value = g_strdup_printf("[object %s]", JS_GetClass(cx, obj)->name);
+ value = g_strdup_printf("[object %s]", JS_GetClass(obj)->name);
}
}