Index: src/accessors.cc |
=================================================================== |
--- src/accessors.cc (revision 1480) |
+++ src/accessors.cc (working copy) |
@@ -275,9 +275,10 @@ |
Object* Accessors::ScriptGetLineEnds(Object* object, void*) { |
- Object* script = JSValue::cast(object)->value(); |
- Script::cast(script)->InitLineEnds(); |
- return Script::cast(script)->line_ends(); |
+ HandleScope scope; |
+ Handle<Script> script(Script::cast(JSValue::cast(object)->value())); |
+ InitScriptLineEnds(script); |
+ return script->line_ends(); |
} |