Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index 069307e3a8ad76ad9ae46e4a0aaf174b1b7f99e9..799202deb8d94145c67b34194d3de2181e2907a9 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -2468,7 +2468,8 @@ |
.MoveRegister(Register::function_closure(), function) |
.LoadLiteral(Smi::FromInt(language_mode())) |
.StoreAccumulatorInRegister(language) |
- .LoadLiteral(Smi::FromInt(expr->position())) |
+ .LoadLiteral( |
+ Smi::FromInt(execution_context()->scope()->start_position())) |
.StoreAccumulatorInRegister(position); |
// Call ResolvePossiblyDirectEval and modify the callee. |