From a33f575cda908c75ad18d56eff014f709186bde2 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sun, 1 Jul 2018 18:07:12 +0200 Subject: Switch back to recv/send instead of pub/sub for low-level API. --- src/deno_internal.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/deno_internal.h') diff --git a/src/deno_internal.h b/src/deno_internal.h index 742ac3e3a..ad0a6f537 100644 --- a/src/deno_internal.h +++ b/src/deno_internal.h @@ -13,9 +13,9 @@ struct deno_s { v8::Isolate* isolate; const v8::FunctionCallbackInfo* currentArgs; std::string last_exception; - v8::Persistent sub; + v8::Persistent recv; v8::Persistent context; - deno_sub_cb cb; + deno_recv_cb cb; void* data; }; } @@ -27,13 +27,13 @@ struct InternalFieldData { }; void Print(const v8::FunctionCallbackInfo& args); -void Sub(const v8::FunctionCallbackInfo& args); -void Pub(const v8::FunctionCallbackInfo& args); +void Recv(const v8::FunctionCallbackInfo& args); +void Send(const v8::FunctionCallbackInfo& args); static intptr_t external_references[] = {reinterpret_cast(Print), - reinterpret_cast(Sub), - reinterpret_cast(Pub), 0}; + reinterpret_cast(Recv), + reinterpret_cast(Send), 0}; -Deno* NewFromSnapshot(void* data, deno_sub_cb cb); +Deno* NewFromSnapshot(void* data, deno_recv_cb cb); void InitializeContext(v8::Isolate* isolate, v8::Local context, const char* js_filename, const char* js_source); -- cgit v1.2.3