From 585ec1218f8cdc191f2e733beb2e6c7a230ac85c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 15 Dec 2022 16:26:10 +0100 Subject: Revert "feat(ops): Fast zero copy string arguments (#16777)" (#17063) This reverts commit 9b2b8df927ac23cfa99016a684179f2a3198ba2e. Closes https://github.com/dsherret/ts-morph/issues/1372 Closes https://github.com/denoland/deno/issues/16979 --- 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 a587de376..3751712f0 100644 --- a/cli/tsc/mod.rs +++ b/cli/tsc/mod.rs @@ -710,9 +710,9 @@ pub fn resolve_npm_package_reference_types( } #[op] -fn op_is_node_file(state: &mut OpState, path: &str) -> bool { +fn op_is_node_file(state: &mut OpState, path: String) -> 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