summaryrefslogtreecommitdiff
path: root/runtime/js/40_write_file.js
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2022-12-13 05:12:49 +0100
committerGitHub <noreply@github.com>2022-12-13 05:12:49 +0100
commit5d9bb8b4b042f4d4fbbe61b31a50a26db7f1ae63 (patch)
tree84f1e25983b3fbbb1a8f991b8db1c948aa371b9a /runtime/js/40_write_file.js
parenta2ba573e77b63d2bcb5cba19fae09cebda2fc685 (diff)
feat: support `createNew` in `Deno.writeFile` (#17023)
Diffstat (limited to 'runtime/js/40_write_file.js')
-rw-r--r--runtime/js/40_write_file.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/js/40_write_file.js b/runtime/js/40_write_file.js
index 36bd317b7..8d026245f 100644
--- a/runtime/js/40_write_file.js
+++ b/runtime/js/40_write_file.js
@@ -17,6 +17,7 @@
options.mode,
options.append ?? false,
options.create ?? true,
+ options.createNew ?? false,
data,
);
}
@@ -41,6 +42,7 @@
options.mode,
options.append ?? false,
options.create ?? true,
+ options.createNew ?? false,
data,
cancelRid,
);