summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-09-23 19:14:57 +0200
committerAnna Henningsen <anna@addaleax.net>2018-09-26 00:32:14 +0200
commit0434d270c17303d1578586add2f842bd7f6b2fb7 (patch)
tree0755972ec8a2b953322ccb87ce87af5c34afc9fe /src
parent2d65e67305a7c39f1c157f497fde25f3d84d9153 (diff)
downloadnode-new-0434d270c17303d1578586add2f842bd7f6b2fb7.tar.gz
worker: reduce `MessagePort` prototype to documented API
`MessagePort` is special because it has to be a C++ API that is exposed to userland. Therefore, there is a number of internal methods on its native prototype; this commit reduces this set of methods to only what is documented in the API. PR-URL: https://github.com/nodejs/node/pull/23037 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/node_worker.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/node_worker.cc b/src/node_worker.cc
index 14a61ceb16..aee97095a4 100644
--- a/src/node_worker.cc
+++ b/src/node_worker.cc
@@ -502,10 +502,6 @@ void InitWorker(Local<Object> target,
thread_id_string,
Number::New(env->isolate(),
static_cast<double>(env->thread_id()))).FromJust();
- Local<String> oninit_string = FIXED_ONE_BYTE_STRING(env->isolate(), "oninit");
- target->Set(env->context(),
- oninit_string,
- env->oninit_symbol()).FromJust();
}
} // anonymous namespace