diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2012-07-23 17:31:42 +0100 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2012-07-23 17:31:42 +0100 |
commit | d864f630316b8eba846a3d721ab2acd5d6bf2f26 (patch) | |
tree | 7c1f458fc44638949fccc27cd91928a3a9af034e | |
parent | 0e7f255f16c04dc737b45fe1fb68893bdde643b1 (diff) | |
download | gjs-baserock/morph.tar.gz |
Fix build with latest js185baserock/morph
JS_GetClass() no longer takes a context parameter since 1.8.8
-rw-r--r-- | gjs/byteArray.c | 4 | ||||
-rw-r--r-- | gjs/stack.c | 2 |
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); } } |