Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index 0227f13b146454a347e623159b6606ce2325bc14..0dabea2ed31db0db4b2b42282162ce19e958f4ab 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -2473,7 +2473,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. |