mirror of
https://github.com/denoland/deno.git
synced 2025-02-20 12:22:52 -05:00

This commit improves permission prompts by adding an option to print a full trace of where the permissions is being requested. Due to big performance hint of stack trace collection, this is only enabled when `DENO_TRACE_PERMISSIONS` env var is present. Closes https://github.com/denoland/deno/issues/20756 --------- Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
9 lines
75 B
TypeScript
9 lines
75 B
TypeScript
function foo() {
|
|
Deno.hostname();
|
|
}
|
|
|
|
function bar() {
|
|
foo();
|
|
}
|
|
|
|
bar();
|