Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! worker_threads: add brand checks for detached properties/methods
  • Loading branch information
jasnell committed Aug 14, 2021
commit 9995f561d33d52ed81c6025d632a75578b4c664f
16 changes: 8 additions & 8 deletions lib/internal/worker/io.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,10 +417,10 @@ class BroadcastChannel extends EventTarget {
throw new DOMException('Message could not be posted.');
}

// TODO(@jasnell): The ref() method is Node.js specific and not part
// of the standard BroadcastChannel API definition. Typically we shouldn't
// extend Web Platform APIs with Node.js specific methods but ref and unref
// are a bit special. We may want to revisit this, however.
// The ref() method is Node.js specific and not part of the standard
// BroadcastChannel API definition. Typically we shouldn't extend Web
// Platform APIs with Node.js specific methods but ref and unref
// are a bit special.
ref() {
if (!isBroadcastChannel(this))
throw new ERR_INVALID_THIS('BroadcastChannel');
Expand All @@ -429,10 +429,10 @@ class BroadcastChannel extends EventTarget {
return this;
}

// TODO(@jasnell): The unref() method is Node.js specific and not part
// of the standard BroadcastChannel API definition. Typically we shouldn't
// extend Web Platform APIs with Node.js specific methods but ref and unref
// are a bit special. We may want to revisit this, however.
// The unref() method is Node.js specific and not part of the standard
// BroadcastChannel API definition. Typically we shouldn't extend Web
// Platform APIs with Node.js specific methods but ref and unref
// are a bit special.
unref() {
if (!isBroadcastChannel(this))
throw new ERR_INVALID_THIS('BroadcastChannel');
Expand Down