summaryrefslogtreecommitdiff
path: root/tools/doc
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2017-09-05 22:38:32 +0200
committerAnna Henningsen <anna@addaleax.net>2018-06-06 19:43:44 +0200
commite7a2367471177c96f454a18319cf8d2fb25482f9 (patch)
tree9027c9bac22dae6f50ed8222a1a1cbd5e573ffe8 /tools/doc
parent2e886e9f452e95a4761a3d85540ba561538b4438 (diff)
downloadandroid-node-v8-e7a2367471177c96f454a18319cf8d2fb25482f9.tar.gz
android-node-v8-e7a2367471177c96f454a18319cf8d2fb25482f9.tar.bz2
android-node-v8-e7a2367471177c96f454a18319cf8d2fb25482f9.zip
worker: implement `MessagePort` and `MessageChannel`
Implement `MessagePort` and `MessageChannel` along the lines of the DOM classes of the same names. `MessagePort`s initially support transferring only `ArrayBuffer`s. Thanks to Stephen Belanger for reviewing this change in its original form, to Benjamin Gruenbaum for reviewing the added tests in their original form, and to Olivia Hugger for reviewing the documentation in its original form. Refs: https://github.com/ayojs/ayo/pull/98 PR-URL: https://github.com/nodejs/node/pull/20876 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Shingo Inoue <leko.noor@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: John-David Dalton <john.david.dalton@gmail.com> Reviewed-By: Gus Caplan <me@gus.host>
Diffstat (limited to 'tools/doc')
-rw-r--r--tools/doc/type-parser.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/doc/type-parser.js b/tools/doc/type-parser.js
index e7c7aa69da..be72893832 100644
--- a/tools/doc/type-parser.js
+++ b/tools/doc/type-parser.js
@@ -117,7 +117,9 @@ const customTypesMap = {
'Tracing': 'tracing.html#tracing_tracing_object',
'URL': 'url.html#url_the_whatwg_url_api',
- 'URLSearchParams': 'url.html#url_class_urlsearchparams'
+ 'URLSearchParams': 'url.html#url_class_urlsearchparams',
+
+ 'MessagePort': 'worker.html#worker_class_messageport'
};
const arrayPart = /(?:\[])+$/;