From 38555a6a0fe9a7235776afe0ebfb2a24dc518391 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Fri, 3 Mar 2023 19:04:10 +0530 Subject: feat(ops): reland fast zero copy string arguments (#17996) Reland https://github.com/denoland/deno/pull/16777 The codegen is disabled in async ops and when fallback to slow call is possible (return type is a Result) to avoid hitting this V8 bug: https://github.com/denoland/deno/issues/17159 --- cli/tsc/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/tsc') diff --git a/cli/tsc/mod.rs b/cli/tsc/mod.rs index e0ea22cd9..bdd11fd52 100644 --- a/cli/tsc/mod.rs +++ b/cli/tsc/mod.rs @@ -800,9 +800,9 @@ pub fn resolve_npm_package_reference_types( } #[op] -fn op_is_node_file(state: &mut OpState, path: String) -> bool { +fn op_is_node_file(state: &mut OpState, path: &str) -> bool { let state = state.borrow::(); - match ModuleSpecifier::parse(&path) { + match ModuleSpecifier::parse(path) { Ok(specifier) => state .maybe_npm_resolver .as_ref() -- cgit v1.2.3