From 31cabefc0f60ee36ada129c92e89d606115206e3 Mon Sep 17 00:00:00 2001 From: "brendan%mozilla.org" Date: Sat, 2 Jul 2005 17:26:00 +0000 Subject: [PATCH] Fix expression statement (SEMICOLON) nodes to start and end at the same source index as their expression child. --- js/narcissus/jsparse.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/narcissus/jsparse.js b/js/narcissus/jsparse.js index a1d4e850492c..2e7bc0644555 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; }