blob: fb8ec78acbd047959130aeae3d1bdcc87a12f12b [file] [log] [blame]
/*
* Code from ticket #96 (https://github.com/jshint/jshint/issues/96)
* The problem was that JSHint parsed getters/setters as function
* declarations and not (anonymous) function expressions.
*/
var test = (function() {
var func = function() {},
innerTest = {
get func() { return func; },
set func(value) { func = value; }
};
innerTest = func;
return innerTest;
})();