summaryrefslogtreecommitdiff
path: root/std/examples/tests
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2020-02-15 16:37:05 +0100
committerGitHub <noreply@github.com>2020-02-15 10:37:05 -0500
commit503d8bfef208178be847cd9d80c62462e0a0d417 (patch)
tree03bb3c128205b97d5ce32bd48f6113d87556c866 /std/examples/tests
parenta0f015b1a39463ec0e98ec204ca727a5f023b200 (diff)
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
Diffstat (limited to 'std/examples/tests')
0 files changed, 0 insertions, 0 deletions