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/internal.h | |
parent | 1502051453bf16787a59f43004b24d553d39bd26 (diff) |
Support scoped variables, unblock REPL async op, and REPL error colors (#1721)
Diffstat (limited to 'libdeno/internal.h')
-rw-r--r-- | libdeno/internal.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libdeno/internal.h b/libdeno/internal.h index 0cd50162c..a87ec0fdc 100644 --- a/libdeno/internal.h +++ b/libdeno/internal.h @@ -133,6 +133,8 @@ static inline v8::Local<v8::String> v8_str(const char* x) { void Print(const v8::FunctionCallbackInfo<v8::Value>& args); void Recv(const v8::FunctionCallbackInfo<v8::Value>& args); void Send(const v8::FunctionCallbackInfo<v8::Value>& args); +void EvalContext(const v8::FunctionCallbackInfo<v8::Value>& args); +void ErrorToJSON(const v8::FunctionCallbackInfo<v8::Value>& args); void Shared(v8::Local<v8::Name> property, const v8::PropertyCallbackInfo<v8::Value>& info); void BuiltinModules(v8::Local<v8::Name> property, @@ -142,6 +144,8 @@ static intptr_t external_references[] = { reinterpret_cast<intptr_t>(Print), reinterpret_cast<intptr_t>(Recv), reinterpret_cast<intptr_t>(Send), + reinterpret_cast<intptr_t>(EvalContext), + reinterpret_cast<intptr_t>(ErrorToJSON), reinterpret_cast<intptr_t>(Shared), reinterpret_cast<intptr_t>(BuiltinModules), reinterpret_cast<intptr_t>(MessageCallback), @@ -153,9 +157,6 @@ Deno* NewFromSnapshot(void* user_data, deno_recv_cb cb); void InitializeContext(v8::Isolate* isolate, v8::Local<v8::Context> context); -void HandleException(v8::Local<v8::Context> context, - v8::Local<v8::Value> exception); - void DeserializeInternalFields(v8::Local<v8::Object> holder, int index, v8::StartupData payload, void* data); |