Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
TOTAL = 8 * 8 * 8 * 8;

// For each integer value (octal number), determine the symbolic notation equivalent to the value's binary representation...
masks = new Array( TOTAL );
masks = [];
for ( i = 0; i < TOTAL; i++ ) {
tmp = '';

Expand Down Expand Up @@ -79,14 +79,14 @@
}
}
// [ integer, octal, binary_string, symbolic_notation ]
masks[ i ] = [ i, lpad( i.toString( 8 ), 4, '0' ), bstr, tmp ];
masks.push( [ i, lpad( i.toString( 8 ), 4, '0' ), bstr, tmp ] );
}

if ( PRETTY_PRINT ) {
// Print the list of masks in symbolic notation:
for ( i = 0; i < TOTAL; i++ ) {
console.log( '%d = %s = %s = %s', masks[i][0], masks[i][1], masks[i][2], masks[i][3] );

Check warning on line 88 in lib/node_modules/@stdlib/process/umask/scripts/binary_to_symbolic.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected console statement
}
} else {
console.log( JSON.stringify( masks ) );

Check warning on line 91 in lib/node_modules/@stdlib/process/umask/scripts/binary_to_symbolic.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected console statement
}