Hm, didn't realize JS_LIKELY required a numeric (not nearly bool-ish) argument. r=red

This commit is contained in:
Jeff Walden
2010-06-17 15:02:38 -07:00
parent fa441b20c0
commit ba0950f70a

View File

@@ -493,7 +493,7 @@ GetIterator(JSContext *cx, JSObject *obj, uintN flags, jsval *vp)
/* NB: for (var p in null) succeeds by iterating over no properties. */
AutoValueVector props(cx);
if (JS_LIKELY(obj) && !Snapshot(cx, obj, flags, props))
if (JS_LIKELY(obj != NULL) && !Snapshot(cx, obj, flags, props))
return false;
NativeIterator *ni =