From 2443f7efee9c04f9331743a5e7ca5c71396f2004 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 11 Jun 2018 19:18:53 +0200 Subject: Use pub/sub instead of send/recv --- deno2/deno_internal.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'deno2/deno_internal.h') diff --git a/deno2/deno_internal.h b/deno2/deno_internal.h index 8472f4264..52c1770f6 100644 --- a/deno2/deno_internal.h +++ b/deno2/deno_internal.h @@ -12,9 +12,9 @@ extern "C" { struct deno_s { v8::Isolate* isolate; std::string last_exception; - v8::Persistent recv; + v8::Persistent sub; v8::Persistent context; - deno_recv_cb cb; + deno_sub_cb cb; void* data; }; } @@ -22,13 +22,13 @@ struct deno_s { namespace deno { void Print(const v8::FunctionCallbackInfo& args); -void Recv(const v8::FunctionCallbackInfo& args); -void Send(const v8::FunctionCallbackInfo& args); +void Sub(const v8::FunctionCallbackInfo& args); +void Pub(const v8::FunctionCallbackInfo& args); static intptr_t external_references[] = {reinterpret_cast(Print), - reinterpret_cast(Recv), - reinterpret_cast(Send), 0}; + reinterpret_cast(Sub), + reinterpret_cast(Pub), 0}; -Deno* NewFromSnapshot(void* data, deno_recv_cb cb); +Deno* NewFromSnapshot(void* data, deno_sub_cb cb); v8::StartupData MakeSnapshot(v8::StartupData* prev_natives_blob, v8::StartupData* prev_snapshot_blob, -- cgit v1.2.3