mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 490339 - Unexpected ReferenceError when using "new Function()" (r=mrbkap).
This commit is contained in:
parent
215627f0fb
commit
d07019814f
@ -2089,11 +2089,7 @@ JSCompiler::setFunctionKinds(JSFunctionBox *funbox, uint16& tcflags)
|
||||
JSFunctionBox *afunbox = funbox->parent;
|
||||
uintN lexdepLevel = lexdep->frameLevel();
|
||||
|
||||
if (!afunbox) {
|
||||
if (tcflags & TCF_IN_FUNCTION)
|
||||
tcflags |= TCF_FUN_HEAVYWEIGHT;
|
||||
} else {
|
||||
do {
|
||||
while (afunbox) {
|
||||
/*
|
||||
* NB: afunbox->level is the static level of
|
||||
* the definition or expression of the function
|
||||
@ -2106,8 +2102,10 @@ JSCompiler::setFunctionKinds(JSFunctionBox *funbox, uint16& tcflags)
|
||||
afunbox->tcflags |= TCF_FUN_HEAVYWEIGHT;
|
||||
break;
|
||||
}
|
||||
} while ((afunbox = afunbox->parent) != NULL);
|
||||
afunbox = afunbox->parent;
|
||||
}
|
||||
if (!afunbox && (tcflags & TCF_IN_FUNCTION))
|
||||
tcflags |= TCF_FUN_HEAVYWEIGHT;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user