Fix expression statement (SEMICOLON) nodes to start and end at the same source index as their expression child.

This commit is contained in:
brendan%mozilla.org 2005-07-02 17:26:00 +00:00
Родитель 5545c2ff3f
Коммит 31cabefc0f
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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;
}