Skip to content

Commit

Permalink
Merge pull request #227 from hhaidar/master
Browse files Browse the repository at this point in the history
Fix octal literals so they work in strict mode
  • Loading branch information
cthackers authored May 12, 2018
2 parents c95c553 + 0f2cb41 commit b94c5dd
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 b94c5dd

Please sign in to comment.