| Index: src/isolate.cc
|
| diff --git a/src/isolate.cc b/src/isolate.cc
|
| index 3d57fb175b4b30a17d8b4e7b4a286241e4bb2ab3..bc48b4e2e809865abe1549ed1cad00c07829788c 100644
|
| --- a/src/isolate.cc
|
| +++ b/src/isolate.cc
|
| @@ -501,7 +501,7 @@ class CaptureStackTraceHelper {
|
| Handle<Script> script(Script::cast(fun->shared()->script()));
|
|
|
| if (!line_key_.is_null()) {
|
| - int script_line_offset = script->line_offset()->value();
|
| + int script_line_offset = script->line_offset();
|
| int line_number = Script::GetLineNumber(script, position);
|
| // line_number is already shifted by the script_line_offset.
|
| int relative_line_number = line_number - script_line_offset;
|
| @@ -513,7 +513,7 @@ class CaptureStackTraceHelper {
|
| if (relative_line_number == 0) {
|
| // For the case where the code is on the same line as the script
|
| // tag.
|
| - column_offset += script->column_offset()->value();
|
| + column_offset += script->column_offset();
|
| }
|
| JSObject::AddProperty(stack_frame, column_key_,
|
| handle(Smi::FromInt(column_offset + 1), isolate_),
|
| @@ -526,7 +526,7 @@ class CaptureStackTraceHelper {
|
|
|
| if (!script_id_key_.is_null()) {
|
| JSObject::AddProperty(stack_frame, script_id_key_,
|
| - handle(script->id(), isolate_), NONE);
|
| + handle(Smi::FromInt(script->id()), isolate_), NONE);
|
| }
|
|
|
| if (!script_name_key_.is_null()) {
|
|
|