Skip to content

os.EOL constant issue #14619

@vishal7201

Description

@vishal7201
  • Version:
  • Platform:
  • Subsystem:

Version : v8.2.1
Platform: Windows (64 bit)

Code

const os = require('os');
console.log(os.EOL + " is the EOL");
os.EOL = "12345"
console.log(os.EOL + " is the EOL");

Output

 is the EOL
12345 is the EOL

os.EOL is specified as a constant but its value is getting updated

Metadata

Metadata

Assignees

Labels

osIssues and PRs related to the os subsystem.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions