mirror of
https://github.com/denoland/deno.git
synced 2024-11-27 16:10:57 -05:00
b729bf0ad9
This commit adds support for suffix wildcard for `--allow-env` flag. Specifying flag like `--allow-env=DENO_*` will enable access to all environmental variables starting with `DENO_*`. Closes #24847 --------- Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: David Sherret <dsherret@gmail.com>
11 lines
362 B
Text
11 lines
362 B
Text
main1 hello
|
|
main2 bye
|
|
main3 aws
|
|
worker1 hello
|
|
worker2 bye
|
|
error: Uncaught (in worker "") (in promise) NotCapable: Requires env access to "AWS_HELLO", run again with the --allow-env flag
|
|
console.log("worker3", Deno.env.get("AWS_HELLO"));
|
|
^
|
|
[WILDCARD]
|
|
error: Uncaught (in promise) Error: Unhandled error in child worker.
|
|
[WILDCARD]
|