diff options
author | Richard <richie765@gmail.com> | 2014-08-22 22:23:44 -0500 |
---|---|---|
committer | Richard <richie765@gmail.com> | 2014-08-28 19:46:51 -0500 |
commit | a6ffb22a2a2e5622370c7c0e5871ce4bc77d0e17 (patch) | |
tree | ab30d7381a0a44f40e97ce1906ad2a083a7e74c7 /Tools | |
parent | eeb4b5497ebf55df303bc0818023fb13f74e6049 (diff) | |
download | swig-a6ffb22a2a2e5622370c7c0e5871ce4bc77d0e17.tar.gz |
Fixed for v8 3.27.34
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/javascript/v8_shell.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
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(); |