mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Followup upvar fix, easy assertbotch avoidance.
This commit is contained in:
parent
fd148818e1
commit
791221dfae
@ -5203,7 +5203,8 @@ js_Interpret(JSContext *cx)
|
||||
*/
|
||||
funobj = fp->callee;
|
||||
slot += JSCLASS_RESERVED_SLOTS(&js_FunctionClass);
|
||||
slot += JS_SCRIPT_UPVARS(script)->length;
|
||||
if (script->upvarsOffset != 0)
|
||||
slot += JS_SCRIPT_UPVARS(script)->length;
|
||||
if (!JS_GetReservedSlot(cx, funobj, slot, &rval))
|
||||
goto error;
|
||||
if (JSVAL_IS_VOID(rval))
|
||||
|
Loading…
Reference in New Issue
Block a user