You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having an issue running winston in Node 4.1.2 strict mode. I get the following error. You can wrap octal literals in single quote to fix the issue. I have a pull request ready and have tested on Node 0.10, 0.12 and 4.1.
/winston/lib/winston/common.js:367
fs.open(options.file, 'a+', 0644, function(err, fd) {
^^^^
SyntaxError: Octal literals are not allowed in strict mode.
The text was updated successfully, but these errors were encountered:
@wesleyeff You shouldn't use --use-strict v8 option in Node.js. It changes the languange behavior in some cases, and might break modules that do not expect it. And you might even not notice the fact that something is broken until bad things happen.
Only the module author should decide if it's ok to force strict mode in his or her module, and he or she could do that by opting in for strict mode per-file.
I'm having an issue running winston in Node 4.1.2 strict mode. I get the following error. You can wrap octal literals in single quote to fix the issue. I have a pull request ready and have tested on Node 0.10, 0.12 and 4.1.
The text was updated successfully, but these errors were encountered: