1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-11 10:07:54 -05:00
denoland-deno/tests
Charlie Bellini 7499525ed0
fix(ext/websocket): don't throw exception when sending to closed socket (#26932)
[The WebSocket specification for the `send`
function](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/send)
says:

> The browser will throw an exception if you call `send()` when the
connection is in the `CONNECTING` state. If you call `send()` when the
connection is in the `CLOSING` or `CLOSED` states, the browser will
silently discard the data.

and:

> ### Exceptions
> 
> `InvalidStateError`
[`DOMException`](https://developer.mozilla.org/en-US/docs/Web/API/DOMException)
> 
> Thrown if
[`WebSocket.readyState`](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/readyState)
is `CONNECTING`.

This pull request fixes the current behavior to match the specification.
Also, I believe it fixes #17586.
2024-11-28 15:47:21 +01:00
..
config chore: use @std prefix for internal module specifiers (#24543) 2024-07-25 10:26:54 +10:00
ffi fix(ext/ffi): return u64/i64 as bigints from nonblocking ffi calls (#26486) 2024-10-24 09:41:38 +05:30
integration fix(cli): Fix typo in doc subcommand help output (#26321) 2024-11-21 12:13:16 -05:00
napi chore: upgrade to rust 1.82 and LLVM 19 (#26615) 2024-11-01 16:13:02 +05:30
node_compat chore: temporarily disable dns tests for Node compat (#26915) 2024-11-18 19:27:44 +00:00
registry feat: subcommand to view and update outdated dependencies (#26942) 2024-11-20 15:22:15 -08:00
specs fix(node): regression where ts files were sometimes resolved instead of js (#26971) 2024-11-21 12:13:17 -05:00
testdata docs: fix casing of Wasm (#26954) 2024-11-21 01:02:58 +00:00
unit fix(ext/websocket): don't throw exception when sending to closed socket (#26932) 2024-11-28 15:47:21 +01:00
unit_node feat(ext/node): perf_hooks.monitorEventLoopDelay() (#26905) 2024-11-19 16:49:25 +05:30
util feat: subcommand to view and update outdated dependencies (#26942) 2024-11-20 15:22:15 -08:00
wpt fix(ext/websocket): don't throw exception when sending to closed socket (#26932) 2024-11-28 15:47:21 +01:00
Cargo.toml refactor(ext/net): Use hickory dns instead of unmaintained trust-dns (#26741) 2024-11-06 15:49:32 -08:00
lib.rs chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
README.md chore: continue tests/ re-org (#22396) 2024-02-12 17:13:14 -07:00

Deno Integration Tests