mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 15:49:44 -05:00
f32c31a0eb
Before: ``` ▶ target/debug/deno https://deno.land/std/examples/echo_server.ts error: Uncaught PermissionDenied: run again with the --allow-net flag ► $deno$/dispatch_json.ts:40:11 at DenoError ($deno$/errors.ts:20:5) at unwrapResponse ($deno$/dispatch_json.ts:40:11) at sendSync ($deno$/dispatch_json.ts:67:10) at listen ($deno$/net.ts:170:15) at https://deno.land/std/examples/echo_server.ts:4:23 ``` ``` ▶ target/debug/deno --allow-read=/usr https://deno.land/std/examples/cat.ts /etc/passwd error: Uncaught PermissionDenied: run again with the --allow-read flag ► $deno$/dispatch_json.ts:40:11 at DenoError ($deno$/errors.ts:20:5) at unwrapResponse ($deno$/dispatch_json.ts:40:11) at sendAsync ($deno$/dispatch_json.ts:91:10) ``` After: ``` ▶ target/debug/deno https://deno.land/std/examples/echo_server.ts error: Uncaught PermissionDenied: network access to "0.0.0.0:8080", run again with the --allow-net flag ► $deno$/dispatch_json.ts:40:11 at DenoError ($deno$/errors.ts:20:5) at unwrapResponse ($deno$/dispatch_json.ts:40:11) at sendSync ($deno$/dispatch_json.ts:67:10) at listen ($deno$/net.ts:170:15) at https://deno.land/std/examples/echo_server.ts:4:23 ``` ``` ▶ target/debug/deno --allow-read=/usr https://deno.land/std/examples/cat.ts /etc/passwd error: Uncaught PermissionDenied: read access to "/etc/passwd", run again with the --allow-read flag ► $deno$/dispatch_json.ts:40:11 at DenoError ($deno$/errors.ts:20:5) at unwrapResponse ($deno$/dispatch_json.ts:40:11) at sendAsync ($deno$/dispatch_json.ts:91:10) ``` |
||
---|---|---|
.. | ||
compilers | ||
js | ||
ops | ||
tests | ||
build.rs | ||
Cargo.toml | ||
checksum.rs | ||
colors.rs | ||
deno_dir.rs | ||
deno_error.rs | ||
diagnostics.rs | ||
disk_cache.rs | ||
file_fetcher.rs | ||
flags.rs | ||
fmt_errors.rs | ||
fs.rs | ||
global_state.rs | ||
global_timer.rs | ||
http_util.rs | ||
import_map.rs | ||
js.rs | ||
lib.rs | ||
lockfile.rs | ||
main.rs | ||
metrics.rs | ||
msg.rs | ||
permissions.rs | ||
progress.rs | ||
README.md | ||
repl.rs | ||
resolve_addr.rs | ||
shell.rs | ||
signal.rs | ||
source_maps.rs | ||
startup_data.rs | ||
state.rs | ||
test_util.rs | ||
tokio_util.rs | ||
version.rs | ||
web_worker.rs | ||
worker.rs |