Refactoring code to conform to ES6 standards
To update filerjs/filer/tests/spec/fs.chmod.spec.js in keeping with modern ES6 standards, variables that were declared using ‘var’ were refactored to be declared using ‘const’ or ‘let’. ‘const’ and ‘let’ variable declarations are desired over ‘var’ declarations because they are more stringent in terms of scoping. The issue can be found here.
Variable declarations using var need to be refactored to use const and let with strict mode.github.com
The corresponding pull request can be found here.