From 22b9adce49ead458067664918294f2c700667374 Mon Sep 17 00:00:00 2001 From: "svenpanne@chromium.org" Date: Tue, 12 Nov 2013 07:03:59 +0000 Subject: [PATCH] Have mercy and don't kill the Context::Scope immediately after birth. BUG=v8::2994 R=dcarney@chromium.org Review URL: https://codereview.chromium.org/68693003 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17627 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/mksnapshot.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mksnapshot.cc b/src/mksnapshot.cc index 95d3daa..acd4525 100644 --- a/src/mksnapshot.cc +++ b/src/mksnapshot.cc @@ -309,7 +309,7 @@ int main(int argc, char** argv) { // Capture 100 frames if anything happens. V8::SetCaptureStackTraceForUncaughtExceptions(true, 100); HandleScope scope(isolate); - v8::Context::Scope(v8::Local::New(isolate, context)); + v8::Context::Scope cscope(v8::Local::New(isolate, context)); const char* name = i::FLAG_extra_code; FILE* file = i::OS::FOpen(name, "rb"); if (file == NULL) { -- 2.7.4