Skip to content

Commit 888931d

Browse files
committed
To support strict mode use 0o prefix to octal numbers
1 parent 89b6f67 commit 888931d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adm-zip.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,9 @@ module.exports = function(/*String*/input) {
288288

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

0 commit comments

Comments
 (0)