diff --git a/js/narcissus/jsparse.js b/js/narcissus/jsparse.js index a1d4e850492..2e7bc064455 100644 --- a/js/narcissus/jsparse.js +++ b/js/narcissus/jsparse.js @@ -547,9 +547,10 @@ function Statement(t, x) { return n; } - t.unget(); n = new Node(t, SEMICOLON); + t.unget(); n.expression = Expression(t, x); + n.end = n.expression.end; break; }