diff options
| author | Leo Kettmeir <crowlkats@toaxl.com> | 2023-01-08 23:48:46 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-08 23:48:46 +0100 |
| commit | c41d4ff90e09b63bd1894052352a5acba57b1704 (patch) | |
| tree | 52be95551ed263c2f4831aaefc78bb6fdda6d89c /cli/ops | |
| parent | 2be1282be42369e558cc77f75b22488ce7a8215e (diff) | |
feat(core): allow specifying name and dependencies of an Extension (#17301)
Diffstat (limited to 'cli/ops')
| -rw-r--r-- | cli/ops/bench.rs | 2 | ||||
| -rw-r--r-- | cli/ops/mod.rs | 2 | ||||
| -rw-r--r-- | cli/ops/testing.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/cli/ops/bench.rs b/cli/ops/bench.rs index 3b27ffa7e..9b70cfa79 100644 --- a/cli/ops/bench.rs +++ b/cli/ops/bench.rs @@ -22,7 +22,7 @@ pub fn init( sender: UnboundedSender<BenchEvent>, filter: TestFilter, ) -> Extension { - Extension::builder() + Extension::builder("deno_bench") .ops(vec![ op_pledge_test_permissions::decl(), op_restore_test_permissions::decl(), diff --git a/cli/ops/mod.rs b/cli/ops/mod.rs index 96599a663..c31a30531 100644 --- a/cli/ops/mod.rs +++ b/cli/ops/mod.rs @@ -14,7 +14,7 @@ pub fn cli_exts(ps: ProcState) -> Vec<Extension> { } fn init_proc_state(ps: ProcState) -> Extension { - Extension::builder() + Extension::builder("deno_cli") .ops(vec![op_npm_process_state::decl()]) .state(move |state| { state.put(ps.clone()); diff --git a/cli/ops/testing.rs b/cli/ops/testing.rs index e5c0a2b99..e9d0acf41 100644 --- a/cli/ops/testing.rs +++ b/cli/ops/testing.rs @@ -30,7 +30,7 @@ pub fn init( fail_fast_tracker: FailFastTracker, filter: TestFilter, ) -> Extension { - Extension::builder() + Extension::builder("deno_test") .ops(vec