зеркало из https://github.com/mozilla/pjs.git
Bug 517640. TM: we don't substitute the global object for apply(null, ...). r=mrbkap
This commit is contained in:
Родитель
65e4912268
Коммит
d770fe9ac4
|
@ -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();
|
||||
|
||||
/*
|
||||
|
|
Загрузка…
Ссылка в новой задаче