fix(ops): circular dependency in deno_ops test (#16809)

This commit is contained in:
Divy Srivastava 2022-11-25 06:47:21 -08:00 committed by GitHub
parent d80af8324d
commit 8fc62f93bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 6 additions and 74 deletions

View file

@ -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 {