GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — worker: throw InvalidStateError in postMessage after close · nodejs/node@226836c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal/worker
    • io.js
  • test/wpt/status/webmessaging
    • broadcastchannel.json
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/worker/io.js‎

Copy file name to clipboardExpand all lines: lib/internal/worker/io.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ class BroadcastChannel extends EventTarget {
491491
if (arguments.length === 0)
492492
throw new ERR_MISSING_ARGS('message');
493493
if (this[kHandle] === undefined)
494-
throw new DOMException('BroadcastChannel is closed.');
494+
throw new DOMException('BroadcastChannel is closed.', 'InvalidStateError');
495495
if (this[kHandle].postMessage(message) === undefined)
496496
throw new DOMException('Message could not be posted.');
497497
}
Collapse file

‎test/wpt/status/webmessaging/broadcastchannel.json‎

Copy file name to clipboardExpand all lines: test/wpt/status/webmessaging/broadcastchannel.json
-8Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,6 @@
1010
]
1111
}
1212
},
13-
"interface.any.js": {
14-
"fail": {
15-
"expected": [
16-
"postMessage after close should throw",
17-
"postMessage should throw InvalidStateError after close, even with uncloneable data"
18-
]
19-
}
20-
},
2113
"origin.window.js": {
2214
"fail": {
2315
"expected": [

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.