ariya/esprima — pull request #74 by voloko (2012-06-12 22:19:21+00:00)
Title: Fix invalid start location for CallStatement

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.