diff options
author | Kevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com> | 2019-02-09 13:55:40 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-02-09 16:55:40 -0500 |
commit | 1d36eb47eb882cb9305a6338019fa2a2b375d7b1 (patch) | |
tree | 4584aff9da784f3e05c4fb5314d5911772b4d655 /libdeno/exceptions.h | |
parent | 1502051453bf16787a59f43004b24d553d39bd26 (diff) |
Support scoped variables, unblock REPL async op, and REPL error colors (#1721)
Diffstat (limited to 'libdeno/exceptions.h')
-rw-r--r-- | libdeno/exceptions.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libdeno/exceptions.h b/libdeno/exceptions.h index 362bbc0e6..e07ff183a 100644 --- a/libdeno/exceptions.h +++ b/libdeno/exceptions.h @@ -2,10 +2,17 @@ #ifndef EXCEPTIONS_H_ #define EXCEPTIONS_H_ +#include <string> #include "third_party/v8/include/v8.h" namespace deno { +v8::Local<v8::Object> EncodeExceptionAsObject(v8::Local<v8::Context> context, + v8::Local<v8::Value> exception); + +std::string EncodeExceptionAsJSON(v8::Local<v8::Context> context, + v8::Local<v8::Value> exception); + void HandleException(v8::Local<v8::Context> context, v8::Local<v8::Value> exception); |