Skip to content

Commit

Permalink
Fix octal literals so they work in strict mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hhaidar committed May 9, 2018
1 parent 89b6f67 commit 0f2cb41
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 0f2cb41

Please sign in to comment.