Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2021-05-23 17:20:41 +0300
committerAntoine du Hamel <duhamelantoine1995@gmail.com>2021-06-02 20:30:31 +0300
commitbcf73d651ac5729a11560ea6cc7121569d9c26a9 (patch)
tree9e0b01a2a5d1560ff0ebabd2e0813ce254087dee /src/node_messaging.h
parentd8797f5994d86c25b97f1c2b71e7f56eba302e65 (diff)
worker: do not look up context twice in PostMessage
Refs: https://github.com/nodejs/node/issues/38780#issuecomment-846548949 PR-URL: https://github.com/nodejs/node/pull/38784 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Diffstat (limited to 'src/node_messaging.h')
-rw-r--r--src/node_messaging.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_messaging.h b/src/node_messaging.h
index eeef974ff35..643604e4a99 100644
--- a/src/node_messaging.h
+++ b/src/node_messaging.h
@@ -242,6 +242,7 @@ class MessagePort : public HandleWrap {
// If this port is closed, or if there is no sibling, this message is
// serialized with transfers, then silently discarded.
v8::Maybe<bool> PostMessage(Environment* env,
+ v8::Local<v8::Context> context,
v8::Local<v8::Value> message,
const TransferList& transfer);