Re:Douglas Crockford: Why I removed comments from JSON
by user-id on Monday April 30, 2012 @09:42PM
(#3912581)
Problem at line 1 character 39: Cannot read property 'disrupt' of undefined
Huh?
Re:Douglas Crockford: Why I removed comments from JSON
by kevincennis on Monday April 30, 2012 @10:03PM
(#3912633)
'disrupt' is an internal thing. There's a try/catch somewhere that's failing, but he catches the error and adds it to JSLINT.errors as if it were a problem with YOUR code.
Re:Douglas Crockford: Why I removed comments from JSON
by TazeTSchnitzel on Tuesday May 01, 2012 @07:11AM
(#3913769)
It was probably an innocent mistake, he most likely put it there for debugging.
Problem at line 1 character 25: Expected exactly one space between 'function' and '('.
var crockford = function(){ while(1); }
Problem at line 1 character 27: Expected exactly one space between ')' and '{'.
var crockford = function(){ while(1); }
Problem at line 1 character 27: Missing space between ')' and '{'.
var crockford = function(){ while(1); }
Problem at line 1 character 29: Missing 'use strict' statement.
var crockford = function(){ while(1); }
Problem at line 1 character 34: Expected exactly one space between 'while' and '('.
var crockford = function(){ while(1); }
Problem at line 1 character 35: Unexpected '1'.
var crockford = function(){ while(1); }
Problem at line 1 character 37: Expected exactly one space between ')' and ';'.
var crockford = function(){ while(1); }
Problem at line 1 character 37: Missing space between ')' and ';'.
var crockford = function(){ while(1); }
Problem at line 1 character 37: Expected '{' and instead saw ';'.
var crockford = function(){ while(1); }
Problem at line 1 character 37: Unexpected ';'.
var crockford = function(){ while(1); }
Problem at line 1 character 39: Cannot convert 'array[0]' to object