TypeError: Cannot read property 'line' of undefined
Hmm.. Originally I thought that 'line' was a property of an object defined elsewhere in my application, but that's not the case.
My app does have a global variable called loc
though, in case that's relevant.
Here's a part of the error message:
[..]Development/sauce/node/node_modules/buble/dist/buble.umd.js:1091
var first = Math.max( loc.line - 5, 0 );
^
TypeError: Cannot read property 'line' of undefined
buble.umd.js:
function getSnippet ( source, loc, length ) {
if ( length === void 0 ) length = 1;
var first = Math.max( loc.line - 5, 0 );
var last = loc.line;
var numDigits = String( last ).length;
var lines = source.split( '\n' ).slice( first, last );
var lastLine = lines[ lines.length - 1 ];