mirror of
https://github.com/denoland/deno
synced 2024-08-25 11:07:24 +00:00
chore: explicitly type state.put
for permissions (#22881)
This commit is contained in:
parent
485b4c6301
commit
f50678b4f3
|
@ -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));
|
||||
},
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue