summaryrefslogtreecommitdiff
path: root/runtime/js
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2021-05-17 12:31:21 +0800
committerGitHub <noreply@github.com>2021-05-17 06:31:21 +0200
commit910935c07125e4710830be0df32a16c3ef278ba6 (patch)
tree8ebdbdf96c67aec9ecde627987708bfe94f41e72 /runtime/js
parentac8ea823f5867e35715051176b6a2ff145a3afd1 (diff)
feat(runtime): support urls for `Deno.realPath` and `Deno.realPathSync` (#10626)
Diffstat (limited to 'runtime/js')
-rw-r--r--runtime/js/30_fs.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/js/30_fs.js b/runtime/js/30_fs.js
index 72126e6bb..67c3d4a1f 100644
--- a/runtime/js/30_fs.js
+++ b/runtime/js/30_fs.js
@@ -128,11 +128,11 @@
}
function realPathSync(path) {
- return core.opSync("op_realpath_sync", path);
+ return core.opSync("op_realpath_sync", pathFromURL(path));
}
function realPath(path) {
- return core.opAsync("op_realpath_async", path);
+ return core.opAsync("op_realpath_async", pathFromURL(path));
}
function removeSync(