1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -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, args: Value,
_zero_copy: Option<ZeroCopyBuf>, _zero_copy: Option<ZeroCopyBuf>,
) -> Result<JsonOp, OpError> { ) -> Result<JsonOp, OpError> {
state.check_unstable("Deno.utime");
let args: UtimeArgs = serde_json::from_value(args)?; let args: UtimeArgs = serde_json::from_value(args)?;
let path = resolve_from_cwd(Path::new(&args.path))?; let path = resolve_from_cwd(Path::new(&args.path))?;