From 72d2fc26446fa56f83aa13ae19cef54c501c66d4 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Wed, 20 Feb 2013 10:48:36 +0100 Subject: [PATCH] Fix start offset of block nodes --- acorn_loose.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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());