Checking in mrbkap's fix for 420513, r=me, a=beltzner.

This commit is contained in:
brendan@mozilla.org 2008-03-02 22:49:26 -08:00
Родитель 0642ec7dbc
Коммит cf4d603da9
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1287,7 +1287,7 @@ have_fun:
* JS_THIS or JS_THIS_OBJECT, and scripted functions will go through
* the appropriate this-computing bytecode, e.g., JSOP_THIS.
*/
if (native && fun && !(fun->flags & JSFUN_FAST_NATIVE)) {
if (native && (!fun || !(fun->flags & JSFUN_FAST_NATIVE))) {
if (!js_ComputeThis(cx, JS_FALSE, vp + 2)) {
ok = JS_FALSE;
goto out2;