Index: src/accessors.cc |
diff --git a/src/accessors.cc b/src/accessors.cc |
index dcf0ce86f908d8519acc5014d7559321ad18f0bb..73b225dba42fee6db4002cc5dd05289959b6bc17 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)); |
} |