Commit 15609e9
committed
worker: throw InvalidStateError in postMessage after close
Align BroadcastChannel behavior with the spec by throwing an
InvalidStateError when postMessage is called after the channel is
closed. This ensures that BroadcastChannel properly handles closed
states and throws the correct error for postMessage attempts.
This update addresses expected failures for invalid postMessage after close in WPT.1 parent 0f02810 commit 15609e9
File tree
2 files changed
+1
-9
lines changed- lib/internal/worker
- test/wpt/status/webmessaging
2 files changed
+1
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
| 405 | + | |
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 13 | | |
22 | 14 | | |
23 | 15 | | |
| |||
0 commit comments