Bug 600943: Correctly compute |this| in Date.prototype.toJSON. r=waldo

This commit is contained in:
Jim Blandy
2010-10-01 13:05:03 -07:00
parent cf38ad221b
commit a296239b52

View File

@@ -2026,7 +2026,7 @@ JSBool
date_toJSON(JSContext *cx, uintN argc, Value *vp)
{
/* Step 1. */
JSObject *obj = ComputeThisFromVp(cx, vp);
JSObject *obj = js_ValueToNonNullObject(cx, vp[1]);
if (!obj)
return false;