mafintosh / tar-stream

tar-stream is a streaming tar parser and generator.
MIT License
400 stars 93 forks source link

Updated code example to use proper octal literals. #120

Closed kotborealis closed 4 years ago

kotborealis commented 4 years ago

Since EcmaScript 6, zero escaped octal literals (like 0777) are not allowed in strict mode.

I've updated example code for headers in README to use proper octal literals (like 0o777) for entry mode.

kotborealis commented 4 years ago

I've also searched for legacy octal literals in source code, but all of them are coded using verbose parseInt(..., 8) function. I think it's not necessary to replace those with proper octal literals.

mafintosh commented 4 years ago

Thanks!