diff --git a/dlls/jscript/compile.c b/dlls/jscript/compile.c index 8569c53c6be..0a84aef6516 100644 --- a/dlls/jscript/compile.c +++ b/dlls/jscript/compile.c @@ -1756,10 +1756,7 @@ HRESULT compile_subscript_stat(parser_ctx_t *parser, statement_t *stat, BOOL fro return hres; off = parser->compiler->code_off; - if(stat->next) - hres = compile_block_statement(parser->compiler, stat); - else - hres = compile_statement(parser->compiler, NULL, stat); + hres = compile_block_statement(parser->compiler, stat); if(FAILED(hres)) return hres;