1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-21 23:04:45 -05:00

chore: explicitly type state.put for permissions (#22881)

This commit is contained in:
Divy Srivastava 2024-03-12 21:34:48 -07:00 committed by GitHub
parent 485b4c6301
commit f50678b4f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -390,7 +390,7 @@ impl WebWorker {
enable_testing_features: bool,
},
state = |state, options| {
state.put(options.permissions.0.clone());
state.put::<deno_permissions::PermissionsContainer>(options.permissions.0.clone());
state.put::<PermissionsContainer>(options.permissions);
state.put(ops::TestingFeaturesEnabled(options.enable_testing_features));
},

View file

@ -316,7 +316,7 @@ impl MainWorker {
},
state = |state, options| {
// Save the permissions container and the wrapper.
state.put(options.permissions.0.clone());
state.put::<deno_permissions::PermissionsContainer>(options.permissions.0.clone());
// This is temporary until we migrate all exts/ to the deno_permissions crate.
state.put::<PermissionsContainer>(options.permissions);
state.put(ops::TestingFeaturesEnabled(options.enable_testing_features));