ariya/esprima — pull request #91 by voloko (2012-07-12 20:51:30+00:00)
Title: Fix invalid start location for CallStatement

Same change, merged into harmony branch

CallStatement was returning a position of '(' as a start location. It should return the position of the actual beginning of the statement instead. Example

parse("universe(42)")

was returning
{
type: 'CallExpression',
...
range: [0, 12]
}

while it should
{
type: 'CallExpression',
...
range: [8, 12]
}

Update the wrapper function and fix tests.

http://code.google.com/p/esprima/issues/detail?id=278

Conflicts:

test/test.js