Uncaught Exception - 18 hrs ago - cf4d049

TypeError: Cannot set property 'name' of undefined
    at bar (lib/unhandled.js:4)
    at foo (lib/unhandled.js:14)
    at Object.<anonymous> (lib/unhandled.js:18)
          

lib/unhandled.js
2 function bar(x) {
3   // x is declared but undefined - this is missed by jshint and eslint
4   x.name = 'dave';
5 }
6 

How to Reproduce
foo(101);


Autogenerated Test
 1 // FuzzStati0n: Auto generated chai/mocha.js test - modify as required
 2 var assert = chai.assert;
 3 describe('...', function() {
 4   describe('...', function() {
 5     it('should not throw a TypeError when age equals 101', function(){
 6       assert.doesNotThrow(function () { foo(101) }, Error, 
 7         "Cannot set property 'name' of undefined");
 8     });
 9   });
10 });

How to Fix
This kind of TypeError occurs when you try to set a property to a variable which is of type undefined This error is usually due to a typo - check that the variable x has been assigned a value.

Please also see:
StackOverflow - Uncaught TypeError: Cannot read property 'value' of undefined