From 2fcf1f14cf29bb68995f652f93a4f6e3cb55c8d7 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 21 Mar 2023 11:46:40 -0400 Subject: feat: TypeScript 5.0.2 (except decorators) (#18294) This upgrades TypeScript to 5.0.2, but does not have ES decorator support because swc does not support that yet. --- ext/fs/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'ext') diff --git a/ext/fs/lib.rs b/ext/fs/lib.rs index 3bad65330..9c889d9b2 100644 --- a/ext/fs/lib.rs +++ b/ext/fs/lib.rs @@ -1339,6 +1339,7 @@ fn do_stat(path: PathBuf, lstat: bool) -> Result { } else { (path.canonicalize()?, FILE_FLAG_BACKUP_SEMANTICS) }; + // SAFETY: winapi calls unsafe { let mut path: Vec<_> = p.as_os_str().encode_wide().collect(); path.push(0); -- cgit v1.2.3