0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-30 09:08:00 -04:00
denoland-deno/cli
Nayeem Rahman 8b31fc23cd
refactor: Move source map lookups to core (#14274)
The following transformations gradually faced by "JsError" have all been 
moved up front to "JsError::from_v8_exception()": 

- finding the first non-"deno:" source line; 
- moving "JsError::script_resource_name" etc. into the first error stack 
in case of syntax errors; 
- source mapping "JsError::script_resource_name" etc. when wrapping 
the error even though the frame locations are source mapped earlier; 
- removing "JsError::{script_resource_name,line_number,start_column,end_column}"
entirely in favour of "js_error.frames.get(0)". 

We also no longer pass a js-side callback to "core/02_error.js" from cli. 
I avoided doing this on previous occasions because the source map lookups 
were in an awkward place.
2022-04-15 16:08:09 +02:00
..
bench refactor(lsp): migrate from lspower back to tower-lsp (#14163) 2022-04-03 14:17:30 +10:00
compat chore: forward v1.20.6 release commit to main (#14288) 2022-04-14 15:50:48 -04:00
dts feat(ext/web): Add error events for event listener and timer errors (#14159) 2022-04-13 11:50:57 +02:00
lsp feat(test): format user code output (#14271) 2022-04-15 14:24:41 +02:00
ops refactor: Move source map lookups to core (#14274) 2022-04-15 16:08:09 +02:00
schemas fix(config-file): fix config-file.v1.json schema to allow colons in the task name (#14013) 2022-03-17 13:55:24 -04:00
tests refactor: Move source map lookups to core (#14274) 2022-04-15 16:08:09 +02:00
tools refactor: Move source map lookups to core (#14274) 2022-04-15 16:08:09 +02:00
tsc feat(core): codegen ops (#13861) 2022-03-14 18:44:15 +01:00
auth_tokens.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
build.rs fix: cargo publish fails without absolute paths (#13993) 2022-03-17 01:25:44 +01:00
cache.rs chore: remove all pub(crate)s from the cli crate (#14083) 2022-03-23 09:54:22 -04:00
Cargo.toml refactor: Move source map lookups to core (#14274) 2022-04-15 16:08:09 +02:00
cdp.rs fix(repl): fix null eval result (#13804) 2022-03-02 13:39:08 +09:00
checksum.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
config_file.rs feat(lsp): support API for config file (#14139) 2022-03-29 11:27:43 +11:00
deno.ico fix(cli): add icon and metadata to deno.exe on Windows (#6693) 2020-07-15 21:54:38 +02:00
deno_dir.rs fix: don't crash when $HOME is a relative path (#13581) 2022-02-03 14:08:17 +01:00
diagnostics.rs fix(bench): require --unstable flag in JavaScript (#14091) 2022-03-23 16:33:42 +01:00
diff.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
disk_cache.rs chore(tests): use custom temp dir creation for the tests (#14153) 2022-04-01 11:15:37 -04:00
display.rs refactor: add cli/display.rs module (#13879) 2022-03-09 00:19:02 +01:00
emit.rs feat: Add "deno check" subcommand for type checking (#14072) 2022-04-11 01:12:51 +02:00
errors.rs chore: remove all pub(crate)s from the cli crate (#14083) 2022-03-23 09:54:22 -04:00
file_fetcher.rs chore(tests): use custom temp dir creation for the tests (#14153) 2022-04-01 11:15:37 -04:00
file_watcher.rs feat(cli): add "--no-clear-screen" flag (#13454) 2022-01-31 17:39:39 +01:00
flags.rs chore: rephrase env var help (#14270) 2022-04-13 17:59:40 +02:00
flags_allow_net.rs chore: upgrade clap to v3 (#13266) 2022-01-14 17:38:17 +01:00
fmt_errors.rs refactor: Move source map lookups to core (#14274) 2022-04-15 16:08:09 +02:00
fs_util.rs chore(tests): use custom temp dir creation for the tests (#14153) 2022-04-01 11:15:37 -04:00
graph_util.rs chore: remove all pub(crate)s from the cli crate (#14083) 2022-03-23 09:54:22 -04:00
http_cache.rs chore(tests): use custom temp dir creation for the tests (#14153) 2022-04-01 11:15:37 -04:00
http_util.rs chore: remove all pub(crate)s from the cli crate (#14083) 2022-03-23 09:54:22 -04:00
lockfile.rs chore(tests): use custom temp dir creation for the tests (#14153) 2022-04-01 11:15:37 -04:00
logger.rs chore: remove all pub(crate)s from the cli crate (#14083) 2022-03-23 09:54:22 -04:00
main.rs refactor: Move source map lookups to core (#14274) 2022-04-15 16:08:09 +02:00
module_loader.rs chore: remove all pub(crate)s from the cli crate (#14083) 2022-03-23 09:54:22 -04:00
proc_state.rs refactor: Move source map lookups to core (#14274) 2022-04-15 16:08:09 +02:00
README.md Remove deno_typescript (#6813) 2020-07-20 19:49:57 -04:00
resolver.rs chore: remove all pub(crate)s from the cli crate (#14083) 2022-03-23 09:54:22 -04:00
standalone.rs refactor: Move source map lookups to core (#14274) 2022-04-15 16:08:09 +02:00
text_encoding.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
tsc.rs chore: remove all pub(crate)s from the cli crate (#14083) 2022-03-23 09:54:22 -04:00
unix_util.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
version.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
windows_util.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00

Deno CLI Crate

crates docs

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

The deno crate uses the deno_core to provide the executable.