-
-
Notifications
You must be signed in to change notification settings - Fork 35.1k
Closed
Labels
errorsIssues and PRs related to JavaScript errors originated in Node.js core.Issues and PRs related to JavaScript errors originated in Node.js core.questionIssues that look for answers.Issues that look for answers.
Description
fs.readFileSync(null)
// > TypeError: path must be a string or Buffer
path.join(null)
// > TypeError: Path must be a string. Received null
new URL(null)
// > TypeError [ERR_INVALID_URL]: Invalid URL: null
The above output is from Node.js v8.2.1. I think It would be nice if TypeErrors in general would be more consistent across Node.js’s core modules.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
errorsIssues and PRs related to JavaScript errors originated in Node.js core.Issues and PRs related to JavaScript errors originated in Node.js core.questionIssues that look for answers.Issues that look for answers.