summaryrefslogtreecommitdiff
path: root/runtime/js/30_fs.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/30_fs.js')
-rw-r--r--runtime/js/30_fs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/js/30_fs.js b/runtime/js/30_fs.js
index 84e1c6819..913158a34 100644
--- a/runtime/js/30_fs.js
+++ b/runtime/js/30_fs.js
@@ -58,7 +58,7 @@
}
function chdir(directory) {
- core.opSync("op_chdir", directory);
+ core.opSync("op_chdir", pathFromURL(directory));
}
function makeTempDirSync(options = {}) {