Reviewers: alph, Hannes Payer,

Description:
Create HandleScope before calling GetScriptLineNumber

Otherwise we may crash.

BUG=None
LOG=N

Please review this at https://codereview.chromium.org/169773002/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+1, -0 lines):
  M src/allocation-tracker.cc


Index: src/allocation-tracker.cc
diff --git a/src/allocation-tracker.cc b/src/allocation-tracker.cc
index 5ec64846015ec7d19d011e3125ada144da27d40a..83e1bb4b396a6c371f99a922d44b9c6781d46072 100644
--- a/src/allocation-tracker.cc
+++ b/src/allocation-tracker.cc
@@ -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_);
 }


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to