"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/unit/options.js" between
jshint-2.13.5.tar.gz and jshint-2.13.6.tar.gz

About: JSHint is a static code analysis tool for JavaScript that helps to detect errors and potential problems in programs written in JavaScript.

options.js  (jshint-2.13.5):options.js  (jshint-2.13.6)
skipping to change at line 2488 skipping to change at line 2488
var code = [ var code = [
'const myConst = true;', 'const myConst = true;',
'const foo = 9;', 'const foo = 9;',
'var myConst = function (test) { };', 'var myConst = function (test) { };',
'foo = "hello world";', 'foo = "hello world";',
'var a = { get x() {} };' 'var a = { get x() {} };'
]; ];
TestRun(test) TestRun(test)
.addError(21, 7, "const 'immutable4' is initialized to 'undefined'.") .addError(21, 7, "Missing initializer for constant 'immutable4'.")
.test(src, { esnext: true }); .test(src, { esnext: true });
TestRun(test) TestRun(test)
.addError(21, 7, "const 'immutable4' is initialized to 'undefined'.") .addError(21, 7, "Missing initializer for constant 'immutable4'.")
.test(src, { moz: true }); .test(src, { moz: true });
TestRun(test) TestRun(test)
.addError(3, 5, "'myConst' has already been declared.") .addError(3, 5, "'myConst' has already been declared.")
.addError(4, 1, "Attempting to override 'foo' which is a constant.") .addError(4, 1, "Attempting to override 'foo' which is a constant.")
.test(code, { esnext: true }); .test(code, { esnext: true });
TestRun(test) TestRun(test)
.addError(3, 5, "'myConst' has already been declared.") .addError(3, 5, "'myConst' has already been declared.")
.addError(4, 1, "Attempting to override 'foo' which is a constant.") .addError(4, 1, "Attempting to override 'foo' which is a constant.")
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)