summaryrefslogtreecommitdiff
path: root/gjs/byteArray.c
diff options
context:
space:
mode:
Diffstat (limited to 'gjs/byteArray.c')
-rw-r--r--gjs/byteArray.c4
1 files changed, 2 insertions, 2 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);