From 0f2cb41e5f6b07c68146ce2f73be2902ec569c8e Mon Sep 17 00:00:00 2001 From: Houssam Haidar Date: Tue, 8 May 2018 21:44:07 -0400 Subject: [PATCH] Fix octal literals so they work in strict mode --- adm-zip.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adm-zip.js b/adm-zip.js index d9acf0c..4a2f661 100644 --- a/adm-zip.js +++ b/adm-zip.js @@ -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-- } }