Closed
Description
Node v6.7.0, Windows 10
To reproduce the issue:
fs.writeFileSync('C:\\temp\\foo:bar:baz', 'fail')
Expected output: Some error message about the filename being invalid because it contains colons
Actual output:
Error: ENOENT: no such file or directory, open 'C:\temp\foo:bar:baz'
at Error (native)
at Object.fs.openSync (fs.js:640:18)
at Object.fs.writeFileSync (fs.js:1333:33)
at repl:1:4
at sigintHandlersWrap (vm.js:22:35)
at sigintHandlersWrap (vm.js:96:12)
at ContextifyScript.Script.runInThisContext (vm.js:21:12)
at REPLServer.defaultEval (repl.js:313:29)
at bound (domain.js:280:14)
at REPLServer.runBound [as eval] (domain.js:293:12)