diff options
author | William Perron <hey@wperron.io> | 2020-11-23 16:11:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-23 22:11:56 +0100 |
commit | 266925d772527c9ba5fbc094e67cade31fc35a47 (patch) | |
tree | 06187faa63b4ebceddc47daab129b5f9fc5f2024 /cli/rt | |
parent | 46850918e7e6215cc56e163ae4a42c49cd05b446 (diff) |
fix(cli): add file URL support for Deno.readLink (#8423)
Diffstat (limited to 'cli/rt')
-rw-r--r-- | cli/rt/30_fs.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/rt/30_fs.js b/cli/rt/30_fs.js index 7c7d81c3b..33fab01e4 100644 --- a/cli/rt/30_fs.js +++ b/cli/rt/30_fs.js @@ -128,11 +128,11 @@ } function readLinkSync(path) { - return core.jsonOpSync("op_read_link_sync", { path }); + return core.jsonOpSync("op_read_link_sync", { path: pathFromURL(path) }); } function readLink(path) { - return core.jsonOpAsync("op_read_link_async", { path }); + return core.jsonOpAsync("op_read_link_async", { path: pathFromURL(path) }); } function realPathSync(path) { |