From 0434d270c17303d1578586add2f842bd7f6b2fb7 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Sun, 23 Sep 2018 19:14:57 +0200 Subject: worker: reduce `MessagePort` prototype to documented API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `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 Reviewed-By: Michaƫl Zasso Reviewed-By: Luigi Pinca Reviewed-By: Ruben Bridgewater Reviewed-By: James M Snell --- src/node_worker.cc | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') 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 target, thread_id_string, Number::New(env->isolate(), static_cast(env->thread_id()))).FromJust(); - Local oninit_string = FIXED_ONE_BYTE_STRING(env->isolate(), "oninit"); - target->Set(env->context(), - oninit_string, - env->oninit_symbol()).FromJust(); } } // anonymous namespace -- cgit v1.2.1