Bug 517640. TM: we don't substitute the global object for apply(null, ...). r=mrbkap

This commit is contained in:
Andreas Gal :gal 2009-09-25 11:16:44 -04:00
parent 27c2d57074
commit 9089264187

View File

@ -11580,7 +11580,7 @@ TraceRecorder::record_JSOP_APPLY()
* We don't trace apply and call with a primitive 'this', which is the
* first positional parameter.
*/
if (argc > 0 && JSVAL_IS_PRIMITIVE(vp[2]))
if (argc > 0 && !JSVAL_IS_OBJECT(vp[2]))
return record_JSOP_CALL();
/*