Skip to content

Commit

Permalink
To support strict mode use 0o prefix to octal numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
jontore committed Apr 27, 2018
1 parent 89b6f67 commit 888931d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adm-zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,9 @@ module.exports = function(/*String*/input) {

if (!attr) {
if (entry.isDirectory) {
attr = (040755 << 16) | 0x10; // (permissions drwxr-xr-x) + (MS-DOS directory flag)
attr = (0o40755 << 16) | 0x10; // (permissions drwxr-xr-x) + (MS-DOS directory flag)
} else {
attr = 0644 << 16; // permissions -r-wr--r--
attr = 0o644 << 16; // permissions -r-wr--r--
}
}

Expand Down

0 comments on commit 888931d

Please sign in to comment.