| Index: src/debug.cc
|
| diff --git a/src/debug.cc b/src/debug.cc
|
| index 23495c8e5c630862fdeb19216a6812afae7a4f30..25be003f707c06a068ec7f84813e0b8eb3790e24 100644
|
| --- a/src/debug.cc
|
| +++ b/src/debug.cc
|
| @@ -3640,7 +3640,7 @@ v8::Handle<v8::Object> MessageImpl::GetEventData() const {
|
|
|
|
|
| v8::Handle<v8::String> MessageImpl::GetJSON() const {
|
| - v8::HandleScope scope(
|
| + v8::EscapableHandleScope scope(
|
| reinterpret_cast<v8::Isolate*>(event_data_->GetIsolate()));
|
|
|
| if (IsEvent()) {
|
| @@ -3656,7 +3656,7 @@ v8::Handle<v8::String> MessageImpl::GetJSON() const {
|
| if (caught_exception || !json->IsString()) {
|
| return v8::Handle<v8::String>();
|
| }
|
| - return scope.Close(v8::Utils::ToLocal(Handle<String>::cast(json)));
|
| + return scope.Escape(v8::Utils::ToLocal(Handle<String>::cast(json)));
|
| } else {
|
| return v8::Utils::ToLocal(response_json_);
|
| }
|
|
|