summaryrefslogtreecommitdiff
path: root/libdeno/exceptions.h
diff options
context:
space:
mode:
authorKevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com>2019-02-09 13:55:40 -0800
committerRyan Dahl <ry@tinyclouds.org>2019-02-09 16:55:40 -0500
commit1d36eb47eb882cb9305a6338019fa2a2b375d7b1 (patch)
tree4584aff9da784f3e05c4fb5314d5911772b4d655 /libdeno/exceptions.h
parent1502051453bf16787a59f43004b24d553d39bd26 (diff)
Support scoped variables, unblock REPL async op, and REPL error colors (#1721)
Diffstat (limited to 'libdeno/exceptions.h')
-rw-r--r--libdeno/exceptions.h7
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);