summaryrefslogtreecommitdiff
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:46 +0100
commita5d2cea416567776369881ae5a521bf36f72ef02 (patch)
tree34f919e95ce5dc75743e7c84c50a873ced94ceba
parent5f59de1d4b8a6fbac537ff7419f68aa7015b0121 (diff)
Fix object sealing with spidermonkey 1.7.0
-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;