1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-26 16:09:27 -05:00
denoland-deno/cli
Ben Noordhuis 503d8bfef2
fix: skip non-UTF-8 dir entries in Deno.readDir() (#4004)
Example:

		$ python2 -c 'open("\x80\x7F", "w")'

		$ deno eval 'Deno.readDirSync(".")'
		thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', cli/ops/fs.rs:373:16
		note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
		fatal runtime error: failed to initiate panic, error 5
		Aborted (core dumped)

Before this commit they made deno panic, now they are silently skipped.
Not ideal but arguably better than panicking.

No test because what characters are and aren't allowed in filenames is
highly file system-dependent.

Closes #3950
2020-02-15 10:37:05 -05:00
..
compilers refactor: Remove atomics from metrics (#3968) 2020-02-11 17:23:40 +01:00
js Improvements to bundling. (#3965) 2020-02-12 16:41:51 -05:00
ops fix: skip non-UTF-8 dir entries in Deno.readDir() (#4004) 2020-02-15 10:37:05 -05:00
tests Clean up fmt flags and path handling (#3988) 2020-02-13 16:02:18 -05:00
build.rs feat: support crate imports in deno_typescript (#3814) 2020-02-01 12:02:23 +01:00
Cargo.toml v0.33.0 2020-02-13 17:45:22 -05:00
checksum.rs feat: lockfiles (#3231) 2019-11-03 10:39:27 -05:00
colors.rs Remove dead code in cli/shell.rs (#3792) 2020-01-26 11:40:28 -05:00
deno_dir.rs Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
deno_error.rs refactor: reduce number of ErrorKind variants (#3662) 2020-01-20 10:50:16 -05:00
diagnostics.rs Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
disk_cache.rs Do not panic and improve error message on cache failure (#3784) 2020-01-24 17:16:31 -05:00
file_fetcher.rs fix: Correctly determine a --cached-only error (#3979) 2020-02-12 17:02:34 +01:00
flags.rs Clean up fmt flags and path handling (#3988) 2020-02-13 16:02:18 -05:00
fmt.rs Clean up fmt flags and path handling (#3988) 2020-02-13 16:02:18 -05:00
fmt_errors.rs workers: minimal error handling and async module loading (#3665) 2020-01-17 18:43:53 -05:00
fs.rs refactor: reduce number of ErrorKind variants (#3662) 2020-01-20 10:50:16 -05:00
global_state.rs refactor: Remove atomics from metrics (#3968) 2020-02-11 17:23:40 +01:00
global_timer.rs Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
http_util.rs Do not encode files loaded from network as utf8 (#3856) 2020-02-04 11:27:50 -05:00
import_map.rs update references to testing/mod.ts in manual (#3973) 2020-02-11 21:50:20 +01:00
installer.rs dont use env vars in multiple installer tests (#3967) 2020-02-11 22:02:11 +01:00
js.rs workers: proper TS libs, more spec-compliant APIs (#3812) 2020-01-29 18:54:23 +01:00
lib.rs Clean up fmt flags and path handling (#3988) 2020-02-13 16:02:18 -05:00
lockfile.rs feat: lockfiles (#3231) 2019-11-03 10:39:27 -05:00
main.rs Rename crates: 'deno' to 'deno_core' and 'deno_cli' to 'deno' (#3600) 2020-01-05 11:56:18 -05:00
metrics.rs refactor: Remove atomics from metrics (#3968) 2020-02-11 17:23:40 +01:00
msg.rs refactor: reduce number of ErrorKind variants (#3662) 2020-01-20 10:50:16 -05:00
permissions.rs refactor: Use PathBuf for paths in flag parsing and whitelists (#3955) 2020-02-11 10:29:36 +01:00
progress.rs Happy new year! (#3578) 2020-01-02 15:13:47 -05:00
README.md update readmes (#3765) 2020-01-23 22:32:52 +01:00
repl.rs Rename crates: 'deno' to 'deno_core' and 'deno_cli' to 'deno' (#3600) 2020-01-05 11:56:18 -05:00
resolve_addr.rs Rename crates: 'deno' to 'deno_core' and 'deno_cli' to 'deno' (#3600) 2020-01-05 11:56:18 -05:00
shell.rs refactor: rename ThreadSafeState, use RefCell for mutable state (#3931) 2020-02-08 20:34:31 +01:00
signal.rs Add signal handlers (#3757) 2020-01-24 08:15:31 -05:00
source_maps.rs Remove //tests symlink (#3849) 2020-02-02 16:55:22 -05:00
startup_data.rs Rename crates: 'deno' to 'deno_core' and 'deno_cli' to 'deno' (#3600) 2020-01-05 11:56:18 -05:00
state.rs refactor: Remove atomics from metrics (#3968) 2020-02-11 17:23:40 +01:00
test_runner.rs refactor: rewrite deno test, add Deno.test() (#3865) 2020-02-11 12:01:56 +01:00
test_util.rs chore: share HTTP server between tests (#3966) 2020-02-11 22:02:35 +01:00
tokio_util.rs workers: basic event loop (#3828) 2020-02-11 10:04:59 +01:00
version.rs Rename crates: 'deno' to 'deno_core' and 'deno_cli' to 'deno' (#3600) 2020-01-05 11:56:18 -05:00
web_worker.rs workers: basic event loop (#3828) 2020-02-11 10:04:59 +01:00
worker.rs refactor: replace Arc<Box<..>> with Rc<..> (#3996) 2020-02-15 01:18:36 +01:00

Deno CLI Crate

crates docs

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

The deno crate uses the deno_core and deno_typescript to provide the executable.