From a6ffb22a2a2e5622370c7c0e5871ce4bc77d0e17 Mon Sep 17 00:00:00 2001 From: Richard Date: Fri, 22 Aug 2014 22:23:44 -0500 Subject: [PATCH] Fixed for v8 3.27.34 --- Tools/javascript/v8_shell.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tools/javascript/v8_shell.cxx b/Tools/javascript/v8_shell.cxx index aac1284bd..7830c0bdb 100644 --- a/Tools/javascript/v8_shell.cxx +++ b/Tools/javascript/v8_shell.cxx @@ -119,6 +119,9 @@ V8Shell::~V8Shell() {} bool V8Shell::RunScript(const std::string& scriptPath) { std::string source = ReadFile(scriptPath); + v8::Isolate* isolate = v8::Isolate::New(); + v8::Isolate::Scope isolate_scope(isolate); + SWIGV8_HANDLESCOPE(); SwigV8Context context = CreateShellContext();