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
This commit is contained in:
parent
8f611593a4
commit
22b9adce49
@ -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<v8::Context>::New(isolate, context));
|
||||
v8::Context::Scope cscope(v8::Local<v8::Context>::New(isolate, context));
|
||||
const char* name = i::FLAG_extra_code;
|
||||
FILE* file = i::OS::FOpen(name, "rb");
|
||||
if (file == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user