From 212b7dd6da487c070229b6348ec7907b4fecbcf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 27 Sep 2022 22:36:33 +0200 Subject: feat: Add requesting API name to permission prompt (#15936) Co-authored-by: Leo Kettmeir --- ext/flash/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/flash') diff --git a/ext/flash/lib.rs b/ext/flash/lib.rs index 957c011bf..93c95f84b 100644 --- a/ext/flash/lib.rs +++ b/ext/flash/lib.rs @@ -1135,7 +1135,7 @@ where check_unstable(state, "Deno.serve"); state .borrow_mut::

() - .check_net(&(&opts.hostname, Some(opts.port)))?; + .check_net(&(&opts.hostname, Some(opts.port)), "Deno.serve()")?; let addr = resolve_addr_sync(&opts.hostname, opts.port)? .next() @@ -1377,6 +1377,7 @@ pub trait FlashPermissions { fn check_net>( &mut self, _host: &(T, Option), + _api_name: &str, ) -> Result<(), AnyError>; } -- cgit v1.2.3