mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[INFER] Mark result of 'new Function.prototype' as unknown, bug 619338.
This commit is contained in:
parent
4c77f186e9
commit
4750d53d19
@ -3647,7 +3647,7 @@ AnalyzeScriptNew(JSContext *cx, JSScript *script)
|
||||
* from 'new' calls to the function.
|
||||
*/
|
||||
TypeFunction *funType = script->fun->getType()->asFunction();
|
||||
if (funType->unknownProperties) {
|
||||
if (funType->unknownProperties || script->fun->isFunctionPrototype()) {
|
||||
script->thisTypes()->addType(cx, TYPE_UNKNOWN);
|
||||
} else {
|
||||
TypeSet *prototypeTypes = funType->getProperty(cx, id_prototype(cx), false);
|
||||
|
Loading…
Reference in New Issue
Block a user