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
parent 29c0574170
commit bf4dff31ae

View File

@ -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;