summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorRichard <richie765@gmail.com>2014-08-22 18:54:12 -0500
committerRichard <richie765@gmail.com>2014-08-28 19:46:51 -0500
commitd4920591d4bd01df809fbe1d90a3f70f77b1c707 (patch)
tree21605fd7aadc35fb29dadc784fc1c763abf47201 /Tools
parentc23375d39d0d02bf414f5c886f8454b8bf05e767 (diff)
downloadswig-d4920591d4bd01df809fbe1d90a3f70f77b1c707.tar.gz
Fixes for v8 3.24.3 (0x032403)
Diffstat (limited to 'Tools')
-rw-r--r--Tools/javascript/v8_shell.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/Tools/javascript/v8_shell.cxx b/Tools/javascript/v8_shell.cxx
index 00d81a034..aac1284bd 100644
--- a/Tools/javascript/v8_shell.cxx
+++ b/Tools/javascript/v8_shell.cxx
@@ -32,7 +32,7 @@ typedef v8::PropertyCallbackInfo<v8::Value> SwigV8PropertyCallbackInfo;
#define SWIGV8_HANDLESCOPE() v8::HandleScope scope
#define SWIGV8_HANDLESCOPE_ESC() v8::HandleScope scope
#define SWIGV8_ESCAPE(val) return scope.Close(val)
-#elif (SWIG_V8_VERSION < 0x032440)
+#elif (SWIG_V8_VERSION < 0x032318)
#define SWIGV8_HANDLESCOPE() v8::HandleScope scope(v8::Isolate::GetCurrent());
#define SWIGV8_HANDLESCOPE_ESC() v8::HandleScope scope(v8::Isolate::GetCurrent());
#define SWIGV8_ESCAPE(val) return scope.Close(val)
@@ -42,7 +42,7 @@ typedef v8::PropertyCallbackInfo<v8::Value> SwigV8PropertyCallbackInfo;
#define SWIGV8_ESCAPE(val) return scope.Escape(val)
#endif
-#if (SWIG_V8_VERSION < 0x032440)
+#if (SWIG_V8_VERSION < 0x032318)
#define SWIGV8_CURRENT_CONTEXT() v8::Context::GetCurrent()
#define SWIGV8_STRING_NEW(str) v8::String::New(str)
#define SWIGV8_FUNCTEMPLATE_NEW(func) v8::FunctionTemplate::New(func)
@@ -112,7 +112,7 @@ private:
#error "implement dll loading"
#endif
-V8Shell::V8Shell(){}
+V8Shell::V8Shell() {}
V8Shell::~V8Shell() {}
@@ -237,8 +237,6 @@ bool V8Shell::DisposeEngine() {
}
SwigV8Context V8Shell::CreateShellContext() {
- SWIGV8_HANDLESCOPE_ESC();
-
// Create a template for the global object.
v8::Handle<v8::ObjectTemplate> global = v8::ObjectTemplate::New();
@@ -253,7 +251,7 @@ SwigV8Context V8Shell::CreateShellContext() {
return context;
#else
SwigV8Context context = v8::Context::New(v8::Isolate::GetCurrent(), NULL, global);
- SWIGV8_ESCAPE(context);
+ return context;
#endif
}