Create HandleScope before calling GetScriptLineNumber
Otherwise we may crash. BUG=None LOG=N R=alph@chromium.org, hpayer@chromium.org Review URL: https://codereview.chromium.org/169773002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19437 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
83e7c38d86
commit
c3291494d0
@ -267,6 +267,7 @@ AllocationTracker::UnresolvedLocation::~UnresolvedLocation() {
|
||||
|
||||
void AllocationTracker::UnresolvedLocation::Resolve() {
|
||||
if (script_.is_null()) return;
|
||||
HandleScope scope(script_->GetIsolate());
|
||||
info_->line = GetScriptLineNumber(script_, start_position_);
|
||||
info_->column = GetScriptColumnNumber(script_, start_position_);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user