Skip to content

Commit

Permalink
Add back the start/end/lineno attributes because gelatin uses 'end'. …
Browse files Browse the repository at this point in the history
…Still a

TODO.
  • Loading branch information
Andy Chu committed Jan 5, 2010
1 parent dc2811e commit 7244e53
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions patched/jsparse.js
Expand Up @@ -301,8 +301,10 @@ Np.toJSON = function(key) {
continue;
if (name === 'tokenizer') // not part of parse tree
continue;
if (name === 'start' || name === 'end' || name == 'lineno')
continue; // don't need these most of the time
// TODO: Make the presence of these attributes configurable, so the size of
// the JSON isn't too large
//if (name === 'start' || name === 'end' || name == 'lineno')
// continue; // don't need these most of the time
if (name === 'length')
continue; // don't need length in JSON
if (name === 'varDecls' || name === 'funDecls')
Expand Down

0 comments on commit 7244e53

Please sign in to comment.