deno/cli
Kamil Ogórek 1d7203c24c
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-14 15:06:28 +01:00
..
args refactor(coverage): use FileFlags struct (#17388) 2023-01-13 16:56:29 -05:00
bench refactor(bench/http): Use optional chaining instead of || fallthrough (#17317) 2023-01-14 00:51:57 +01:00
cache chore: add copyright_checker tool and add the missing copyright (#17285) 2023-01-13 16:51:32 +09:00
js fix: upgrade deno_ast to 0.23 (#17269) 2023-01-04 18:54:54 -05:00
lsp chore: add copyright_checker tool and add the missing copyright (#17285) 2023-01-13 16:51:32 +09:00
napi chore(napi): Remove unstable libuv methods (#17416) 2023-01-14 13:02:42 +00:00
node fix(npm): allow to read package.json if permissions are granted (#17209) 2023-01-10 14:35:44 +01:00
npm fix(npm): allow to read package.json if permissions are granted (#17209) 2023-01-10 14:35:44 +01:00
ops chore: add copyright_checker tool and add the missing copyright (#17285) 2023-01-13 16:51:32 +09:00
schemas fix: add missing verb in description (#17163) 2022-12-22 14:51:22 +01:00
tests fix(ext/flash): Correctly handle errors for chunked responses (#17303) 2023-01-14 15:06:28 +01:00
tools refactor(coverage): use FileFlags struct (#17388) 2023-01-13 16:56:29 -05:00
tsc feat: allow passing a ReadableStream to Deno.writeFile/Deno.writeTextFile (#17329) 2023-01-12 03:37:23 +01:00
util chore: add copyright_checker tool and add the missing copyright (#17285) 2023-01-13 16:51:32 +09:00
auth_tokens.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
build.rs feat(core): allow specifying name and dependencies of an Extension (#17301) 2023-01-08 23:48:46 +01:00
Cargo.toml chore: forward 1.29.3 release back to main (#17401) 2023-01-13 13:36:51 -05:00
deno.ico
deno_std.rs chore: forward 1.29.3 release back to main (#17401) 2023-01-13 13:36:51 -05:00
emit.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
errors.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
file_fetcher.rs refactor(permissions): add PermissionsContainer struct for internal mutability (#17134) 2023-01-07 17:25:34 +01:00
graph_util.rs fix(watch): preserve ProcState::file_fetcher between restarts (#15466) 2023-01-10 16:28:10 +01:00
http_util.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
js.rs chore: add copyright_checker tool and add the missing copyright (#17285) 2023-01-13 16:51:32 +09:00
main.rs refactor(cli/tools): move flag and config logic to CliOptions (#17008) 2023-01-07 15:22:09 -05:00
module_loader.rs fix(watch): preserve ProcState::file_fetcher between restarts (#15466) 2023-01-10 16:28:10 +01:00
proc_state.rs fix(watch): preserve ProcState::file_fetcher between restarts (#15466) 2023-01-10 16:28:10 +01:00
README.md docs(cli): do not need gen doc for cli (#17260) 2023-01-04 13:19:58 +01:00
resolver.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
standalone.rs fix(npm): allow to read package.json if permissions are granted (#17209) 2023-01-10 14:35:44 +01:00
version.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
worker.rs chore: add copyright_checker tool and add the missing copyright (#17285) 2023-01-13 16:51:32 +09:00

Deno CLI Crate

crates

This provides the actual deno executable and the user-facing APIs.

The deno crate uses the deno_core to provide the executable.