-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.regressionIssues related to regressions.Issues related to regressions.
Description
Version
v22.0.0
Platform
Linux
Subsystem
fs
What steps will reproduce the bug?
"use strict";
var fs = require("fs");
var stat = fs.statSync("./package.json")
stat.atime;
stat.atime = 2;How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
It should set stat.atime to 2
What do you see instead?
stat.atime = 2;
^
TypeError: Cannot assign to read only property 'atime' of object '#<Stats>'
at Object.<anonymous> (/home/nic/Documents/dev/github.com/babel/babel/test.js:5:12)
at Module._compile (node:internal/modules/cjs/loader:1455:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1534:10)
at Module.load (node:internal/modules/cjs/loader:1265:32)
at Module._load (node:internal/modules/cjs/loader:1081:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:187:14)
at node:internal/main/run_main_module:28:49
Additional information
Original bug report: gulpjs/vinyl-fs#350
Caused by #50908
trusktr, alewolf, raveenb and Luke-Sheppzandercymatics
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.regressionIssues related to regressions.Issues related to regressions.