mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 10:33:54 +00:00
fix(ops): circular dependency in deno_ops test (#16809)
This commit is contained in:
parent
d80af8324d
commit
8fc62f93bf
9 changed files with 6 additions and 74 deletions
|
@ -17,9 +17,6 @@ mod deno;
|
|||
mod fast_call;
|
||||
mod optimizer;
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests;
|
||||
|
||||
const SCOPE_LIFETIME: &str = "'scope";
|
||||
|
||||
/// Add the 'scope lifetime to the function signature.
|
||||
|
@ -60,6 +57,10 @@ impl Op {
|
|||
|
||||
let is_async = item.sig.asyncness.is_some() || is_future(&item.sig.output);
|
||||
let type_params = exclude_lifetime_params(&item.sig.generics.params);
|
||||
|
||||
#[cfg(test)]
|
||||
let core = quote!(deno_core);
|
||||
#[cfg(not(test))]
|
||||
let core = deno::import();
|
||||
|
||||
Self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue