Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed octal literals #76

Closed
wants to merge 1 commit into from
Closed

Removed octal literals #76

wants to merge 1 commit into from

Conversation

nickdbush
Copy link

When running in strict mode, Node (v6.6.0) throws a fit over the fact that the code uses 'octal literals' (i.e 0666 and 07777777, basically anything in base 8). The proper way to handle this is to use parseInt('octal', 8) which then converts it to the correct number, instead of just writing them out in the code. This pull request has changed every appearance of octals to use the correct method.

Tested successfully on v6.6.0, Windows x64 (can't see why it shouldn't work everywhere though but don't mind doing more testing if required). If people want a working version of this library and this PR hasn't been merged you can find the fork at https://github.com/nickdbush/node-tar

@gabriel
Copy link

gabriel commented Feb 4, 2017

Need this for babel es6 support please.

@reconbot reconbot mentioned this pull request Feb 9, 2017
@ablankenship10
Copy link

Working on node 7.4.0, Ubuntu 16.10

@isaacs
Copy link
Owner

isaacs commented May 10, 2017

Done on v3.

@isaacs isaacs closed this May 10, 2017
@isaacs isaacs removed the review label May 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants