From 330cd6b7ea46524783e5d1a8654153b459931cd7 Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Tue, 1 Jun 2021 02:05:57 +0800 Subject: feat(cli): support URL overloads for `Deno.utime` and `Deno.utimeSync` (#10792) --- runtime/js/30_fs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/js') diff --git a/runtime/js/30_fs.js b/runtime/js/30_fs.js index 67c3d4a1f..11e9b32ef 100644 --- a/runtime/js/30_fs.js +++ b/runtime/js/30_fs.js @@ -315,7 +315,7 @@ mtime, ) { core.opSync("op_utime_sync", { - path, + path: pathFromURL(path), atime: toUnixTimeFromEpoch(atime), mtime: toUnixTimeFromEpoch(mtime), }); @@ -327,7 +327,7 @@ mtime, ) { await core.opAsync("op_utime_async", { - path, + path: pathFromURL(path), atime: toUnixTimeFromEpoch(atime), mtime: toUnixTimeFromEpoch(mtime), }); -- cgit v1.2.3