1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-28 10:09:20 -05:00
denoland-deno/ext
Kamil Ogórek 4cc9e2e325
fix(ext/flash): Correctly handle errors for chunked responses (#17303)
The leading cause of the problem was that `handleResponse` has
`tryRespondChunked` passed as an argument, which in turn is implemented
as a call to `core.ops.op_try_flash_respond_chuncked`, that throws in
the repro code.

`handleResponse` was not handled correctly, as it not returned any
value, and had no `catch` attached to it.
It also effectively was never correctly handled inside two other blocks
with `resp.then` and `PromisePrototypeCatch(PromisePrototypeThen(resp,
"..."))` as well, as it just short-circuited the promise with an empty
resolve, instead of relying on the last `(async () => {})` block.

This change makes `handleResponse` return a correct value and attach
`onError` handler to the "non-thenable" variant of response handling
code.
2023-01-16 21:34:15 +01:00
..
broadcast_channel 1.29.3 (#17395) 2023-01-13 12:17:13 -05:00
cache 1.29.3 (#17395) 2023-01-13 12:17:13 -05:00
console 1.29.3 (#17395) 2023-01-13 12:17:13 -05:00
crypto 1.29.3 (#17395) 2023-01-13 12:17:13 -05:00
fetch 1.29.3 (#17395) 2023-01-13 12:17:13 -05:00
ffi 1.29.3 (#17395) 2023-01-13 12:17:13 -05:00
flash fix(ext/flash): Correctly handle errors for chunked responses (#17303) 2023-01-16 21:34:15 +01:00
http 1.29.3 (#17395) 2023-01-13 12:17:13 -05:00
napi fix(napi): allow cleanup hook to remove itself (#17402) 2023-01-16 21:32:01 +01:00
net 1.29.3 (#17395) 2023-01-13 12:17:13 -05:00
node fix(npm): use original node regex in npm resolution (#17404) 2023-01-16 21:33:12 +01:00
tls 1.29.3 (#17395) 2023-01-13 12:17:13 -05:00
url 1.29.3 (#17395) 2023-01-13 12:17:13 -05:00
web 1.29.3 (#17395) 2023-01-13 12:17:13 -05:00
webgpu 1.29.3 (#17395) 2023-01-13 12:17:13 -05:00
webidl 1.29.3 (#17395) 2023-01-13 12:17:13 -05:00
websocket 1.29.3 (#17395) 2023-01-13 12:17:13 -05:00
webstorage 1.29.3 (#17395) 2023-01-13 12:17:13 -05:00