summaryrefslogtreecommitdiff
path: root/src/deno_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/deno_internal.h')
-rw-r--r--src/deno_internal.h14
1 files changed, 7 insertions, 7 deletions
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<v8::Value>* currentArgs;
std::string last_exception;
- v8::Persistent<v8::Function> sub;
+ v8::Persistent<v8::Function> recv;
v8::Persistent<v8::Context> context;
- deno_sub_cb cb;
+ deno_recv_cb cb;
void* data;
};
}
@@ -27,13 +27,13 @@ struct InternalFieldData {
};
void Print(const v8::FunctionCallbackInfo<v8::Value>& args);
-void Sub(const v8::FunctionCallbackInfo<v8::Value>& args);
-void Pub(const v8::FunctionCallbackInfo<v8::Value>& args);
+void Recv(const v8::FunctionCallbackInfo<v8::Value>& args);
+void Send(const v8::FunctionCallbackInfo<v8::Value>& args);
static intptr_t external_references[] = {reinterpret_cast<intptr_t>(Print),
- reinterpret_cast<intptr_t>(Sub),
- reinterpret_cast<intptr_t>(Pub), 0};
+ reinterpret_cast<intptr_t>(Recv),
+ reinterpret_cast<intptr_t>(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<v8::Context> context,
const char* js_filename, const char* js_source);