-
-
Notifications
You must be signed in to change notification settings - Fork 37.3k
fs: fsPromises.lchmod throws AssertionError on Ubuntu #21421
Copy link
Copy link
Closed
Labels
errorsIssues and PRs related to JavaScript errors originating in Node.js core.Issues and PRs related to JavaScript errors originating in Node.js core.experimentalIssues and PRs related to experimental features.Issues and PRs related to experimental features.fsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.promisesIssues and PRs related to ECMAScript promises.Issues and PRs related to ECMAScript promises.
Description
Activity
Metadata
Metadata
Assignees
Labels
errorsIssues and PRs related to JavaScript errors originating in Node.js core.Issues and PRs related to JavaScript errors originating in Node.js core.experimentalIssues and PRs related to experimental features.Issues and PRs related to experimental features.fsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.promisesIssues and PRs related to ECMAScript promises.Issues and PRs related to ECMAScript promises.
When I run the below code on Ubuntu 18.04 on Docker, I got the error.
Expected behavior was
Error [ERR_METHOD_NOT_IMPLEMENTED]but I gotAssertionError [ERR_ASSERTION].Does
ERR_METHOD_NOT_IMPLEMENTED()require arguments likeERR_METHOD_NOT_IMPLEMENTED('lchmod()')?https://github.com/nodejs/node/blob/master/lib/internal/fs/promises.js#L373
https://github.com/nodejs/node/blob/master/lib/internal/fs/promises.js#L381