Skip to content

Commit 0e236b6

Browse files
committed
fix function name
1 parent 9f9cbb1 commit 0e236b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

turbopack/crates/turbo-tasks/src/backend.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,18 +312,18 @@ impl CachedTaskType {
312312
fn_type: native_fn,
313313
this: _,
314314
arg: _,
315-
}
316-
| Self::ResolveNative {
315+
} => Cow::Borrowed(&registry::get_function(*native_fn).name),
316+
Self::ResolveNative {
317317
fn_type: native_fn,
318318
this: _,
319319
arg: _,
320-
} => Cow::Borrowed(&registry::get_function(*native_fn).name),
320+
} => format!("*{}", registry::get_function(*native_fn).name).into(),
321321
Self::ResolveTrait {
322322
trait_type: trait_id,
323323
method_name: fn_name,
324324
this: _,
325325
arg: _,
326-
} => format!("{}::{}", registry::get_trait(*trait_id).name, fn_name).into(),
326+
} => format!("*{}::{}", registry::get_trait(*trait_id).name, fn_name).into(),
327327
}
328328
}
329329

0 commit comments

Comments
 (0)