Module: wine Branch: master Commit: 4fb1cad149eb3c225a2fd27c261db0f2ba445494 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4fb1cad149eb3c225a2fd27c26...
Author: Jacek Caban jacek@codeweavers.com Date: Mon Mar 12 19:21:42 2012 +0100
jscript: Simplify compile_subscript_stat.
---
dlls/jscript/compile.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/dlls/jscript/compile.c b/dlls/jscript/compile.c index 8569c53..0a84aef 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;