mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[INFER] Allow for scripts with no reachable return statement when analyzing 'new' script properties, bug 657197.
This commit is contained in:
parent
98223df216
commit
2eed6ef8b1
5
js/src/jit-test/tests/basic/bug657197.js
Normal file
5
js/src/jit-test/tests/basic/bug657197.js
Normal file
@ -0,0 +1,5 @@
|
||||
try { (function() {
|
||||
new function() {
|
||||
throw [];
|
||||
}
|
||||
})() } catch (e) {}
|
@ -4066,8 +4066,7 @@ AnalyzeNewScriptProperties(JSContext *cx, TypeObject *type, JSScript *script, JS
|
||||
}
|
||||
}
|
||||
|
||||
/* Should have hit a STOP or similar. */
|
||||
JS_NOT_REACHED("bad");
|
||||
/* Will have hit a STOP or similar, unless the script always throws. */
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user