summaryrefslogtreecommitdiff
path: root/couchjs
diff options
context:
space:
mode:
authorRobert Newson <robert.newson@cloudant.com>2011-10-20 18:03:46 +0100
committerRobert Newson <robert.newson@cloudant.com>2011-10-20 18:03:55 +0100
commit75ae049c3595a5c4b074a6f518ce9c1da0c577b2 (patch)
treea2230a79f11de4058ae53f35b0ae0e8e071ff7f4 /couchjs
parentdf394dd313aaa5ee1cf0940ba376cf2f61241051 (diff)
Fix object sealing with spidermonkey 1.7.0
Diffstat (limited to 'couchjs')
-rw-r--r--couchjs/c_src/sm170.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/couchjs/c_src/sm170.c b/couchjs/c_src/sm170.c
index 44cb5870..016c91e0 100644
--- a/couchjs/c_src/sm170.c
+++ b/couchjs/c_src/sm170.c
@@ -217,7 +217,7 @@ seal(JSContext* cx, JSObject* obj, uintN argc, jsval* argv, jsval* rval)
return JS_TRUE;
}
- if(JS_SealObject(cx, obj, deep) != JS_TRUE)
+ if(JS_SealObject(cx, target, deep) != JS_TRUE)
return JS_FALSE;
*rval = JSVAL_VOID;