Skip to content
This repository was archived by the owner on Jul 24, 2019. It is now read-only.

Commit 8404465

Browse files
committedMar 3, 2016
Merge pull request #484 from SamMorrowDrums/master
Fix Strict Mode Violation: Octal Literal
2 parents 2b64427 + d57f903 commit 8404465

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/phantomjs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ if (exports.path) {
5050
try {
5151
// avoid touching the binary if it's already got the correct permissions
5252
var st = fs.statSync(exports.path);
53-
var mode = st.mode | 0555;
53+
var mode = st.mode | parseInt("0555", 8);
5454
if (mode !== st.mode) {
5555
fs.chmodSync(exports.path, mode);
5656
}

0 commit comments

Comments
 (0)
This repository has been archived.