mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[INFER] Fix bogus assert, bug 640078.
This commit is contained in:
parent
a49752d076
commit
6b031eadab
4
js/src/jit-test/tests/basic/bug640078.js
Normal file
4
js/src/jit-test/tests/basic/bug640078.js
Normal file
@ -0,0 +1,4 @@
|
||||
eval("\
|
||||
try{}\
|
||||
catch(w if(function(){})){4067286856}\
|
||||
")
|
@ -2390,10 +2390,8 @@ AnalyzeBytecode(JSContext *cx, AnalyzeState &state, JSScript *script, uint32 off
|
||||
* Check that we aren't destroying any useful information. This should only
|
||||
* occur around exception handling bytecode.
|
||||
*/
|
||||
for (unsigned i = state.stackDepth; i < stackDepth; i++) {
|
||||
for (unsigned i = state.stackDepth; i < stackDepth; i++)
|
||||
JS_ASSERT(!state.stack[i].isForEach);
|
||||
JS_ASSERT(!state.stack[i].hasDouble);
|
||||
}
|
||||
#endif
|
||||
unsigned ndefs = stackDepth - state.stackDepth;
|
||||
memset(&state.stack[state.stackDepth], 0, ndefs * sizeof(AnalyzeStateStack));
|
||||
|
Loading…
Reference in New Issue
Block a user