aboutsummaryrefslogtreecommitdiffstats
path: root/src/bindings/eina_js/eina_js_compatibility.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings/eina_js/eina_js_compatibility.hh')
-rw-r--r--src/bindings/eina_js/eina_js_compatibility.hh18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/bindings/eina_js/eina_js_compatibility.hh b/src/bindings/eina_js/eina_js_compatibility.hh
index 72d054dee0..75ada9db6a 100644
--- a/src/bindings/eina_js/eina_js_compatibility.hh
+++ b/src/bindings/eina_js/eina_js_compatibility.hh
@@ -477,7 +477,23 @@ inline v8::Local<v8::Object> compatibility_global()
{
return _v8_get_current_context<>::GetCurrent()->Global();
}
-
+
+template<class T = v8::StackTrace>
+typename std::enable_if<!v8_uses_isolate, v8::Local<T>>::type
+compatibility_current_stack_trace(v8::Isolate*, int frame_limit,
+ v8::StackTrace::StackTraceOptions options)
+{
+ return T::CurrentStackTrace(frame_limit, options);
+}
+
+template<class T = v8::StackTrace>
+typename std::enable_if<v8_uses_isolate, v8::Local<T>>::type
+compatibility_current_stack_trace(v8::Isolate *isolate, int frame_limit,
+ v8::StackTrace::StackTraceOptions options)
+{
+ return T::CurrentStackTrace(isolate, frame_limit, options);
+}
+
} } }
#endif