| Index: src/rewriter.cc
|
| diff --git a/src/rewriter.cc b/src/rewriter.cc
|
| index 06335a80c7b38e658d78414f76a8a3c0a6a6d726..4db4a3054ea3d80eb3ac3e1da59041008cf2a095 100644
|
| --- a/src/rewriter.cc
|
| +++ b/src/rewriter.cc
|
| @@ -271,13 +271,12 @@ bool Rewriter::Rewrite(CompilationInfo* info) {
|
| // eval('with ({x:1}) x = 1');
|
| // the end position of the function generated for executing the eval code
|
| // coincides with the end of the with scope which is the position of '1'.
|
| - int position = function->end_position();
|
| + int pos = function->end_position();
|
| VariableProxy* result_proxy = processor.factory()->NewVariableProxy(
|
| - result->name(), false, result->interface(), position);
|
| + result->name(), false, result->interface(), pos);
|
| result_proxy->BindTo(result);
|
| Statement* result_statement =
|
| - processor.factory()->NewReturnStatement(result_proxy);
|
| - result_statement->set_statement_pos(position);
|
| + processor.factory()->NewReturnStatement(result_proxy, pos);
|
| body->Add(result_statement, info->zone());
|
| }
|
| }
|
|
|