From 13582ff3f2478f2e2cafa3042fc6aa96ae5049c5 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 29 Jan 2019 11:32:40 -0500 Subject: libdeno: improve exception handling --- libdeno/exceptions.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 libdeno/exceptions.h (limited to 'libdeno/exceptions.h') diff --git a/libdeno/exceptions.h b/libdeno/exceptions.h new file mode 100644 index 000000000..fce70e3f3 --- /dev/null +++ b/libdeno/exceptions.h @@ -0,0 +1,15 @@ +#ifndef EXCEPTIONS_H_ +#define EXCEPTIONS_H_ + +#include "third_party/v8/include/v8.h" + +namespace deno { + +void HandleException(v8::Local context, + v8::Local exception); + +void HandleExceptionMessage(v8::Local context, + v8::Local message); +} // namespace deno + +#endif // EXCEPTIONS_H_ -- cgit v1.2.3