diff --git a/acorn_loose.js b/acorn_loose.js index 6f7023c47e..16742f8d0b 100644 --- a/acorn_loose.js +++ b/acorn_loose.js @@ -397,9 +397,10 @@ } function parseBlock() { + var node = startNode(); pushCx(); expect(tt.braceL); - var node = startNode(), blockIndent = curIndent, line = curLineStart; + var blockIndent = curIndent, line = curLineStart; node.body = []; while (!closesBlock(tt.braceR, blockIndent, line)) node.body.push(parseStatement());