summaryrefslogtreecommitdiff
path: root/lib/internal/worker/io.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/worker/io.js')
-rw-r--r--lib/internal/worker/io.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/internal/worker/io.js b/lib/internal/worker/io.js
index ad8056b5b9..9aa8c19958 100644
--- a/lib/internal/worker/io.js
+++ b/lib/internal/worker/io.js
@@ -102,12 +102,6 @@ Object.defineProperty(MessagePort.prototype, onInitSymbol, {
// This is called after the underlying `uv_async_t` has been closed.
function onclose() {
- if (typeof this.onclose === 'function') {
- // Not part of the Web standard yet, but there aren't many reasonable
- // alternatives in a non-EventEmitter usage setting.
- // Refs: https://github.com/whatwg/html/issues/1766
- this.onclose();
- }
this.emit('close');
}