bug 453889: Correct prbool misuse in spidermonkey

This commit is contained in:
Taras Glek
2008-09-08 13:41:09 -07:00
parent c741712679
commit ea9b92b1ba
6 changed files with 14 additions and 13 deletions

View File

@@ -3638,7 +3638,7 @@ js_NativeSet(JSContext *cx, JSObject *obj, JSScopeProperty *sprop, jsval *vp)
jsval pval;
int32 sample;
JSTempValueRooter tvr;
JSBool ok;
bool ok;
JS_ASSERT(OBJ_IS_NATIVE(obj));
JS_ASSERT(JS_IS_OBJ_LOCKED(cx, obj));
@@ -3899,7 +3899,7 @@ js_SetPropertyHelper(JSContext *cx, JSObject *obj, jsid id, jsval *vp,
return JS_TRUE;
}
return SPROP_SET(cx, sprop, obj, pobj, vp);
return !!SPROP_SET(cx, sprop, obj, pobj, vp);
}
/* Restore attrs to the ECMA default for new properties. */