Index: src/accessors.cc |
diff --git a/src/accessors.cc b/src/accessors.cc |
index 8ccaf0a40060567efa0d977b1d60e32ff47ca819..8cdbcc37f07e8642884c5c88a28296fb9762cfa3 100644 |
--- a/src/accessors.cc |
+++ b/src/accessors.cc |
@@ -661,8 +661,11 @@ |
Script::cast(Handle<JSValue>::cast(object)->value()), isolate); |
Handle<Object> result = isolate->factory()->undefined_value(); |
if (script->compilation_type() == Script::COMPILATION_TYPE_EVAL) { |
- result = |
- Handle<Object>(Smi::FromInt(script->eval_from_position()), isolate); |
+ Handle<Code> code(SharedFunctionInfo::cast( |
+ script->eval_from_shared())->code()); |
+ result = Handle<Object>(Smi::FromInt(code->SourcePosition( |
+ script->eval_from_instructions_offset())), |
+ isolate); |
} |
info.GetReturnValue().Set(Utils::ToLocal(result)); |
} |