1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-21 23:04:45 -05:00

make utime unstable (#4955)

This commit is contained in:
Ali Hasani 2020-04-28 05:44:47 +04:30 committed by GitHub
parent 76641eb05e
commit 22b1a302f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -895,6 +895,8 @@ fn op_utime(
args: Value,
_zero_copy: Option<ZeroCopyBuf>,
) -> Result<JsonOp, OpError> {
state.check_unstable("Deno.utime");
let args: UtimeArgs = serde_json::from_value(args)?;
let path = resolve_from_cwd(Path::new(&args.path))?;