Re: Has JSLINT.tree changed?
- --- In firstname.lastname@example.org, "Douglas Crockford" <douglas@...> wrote:
>Works fine now, thanks.
> --- In email@example.com, Satyam <satyam@> wrote:
> > I don't download the latest version of JSLint every single time so I
> > don't now in which version it might have stopped working but the script
> > I use to detect repeated strings is no longer working. It relied in
> > this part of the docs:
> > // You can obtain the parse tree that JSLint constructed while parsing. The
> > // latest tree is kept in JSLINT.tree. A nice stringication can be produced
> > // with
> > // JSON.stringify(JSLINT.tree, [
> > // 'value', 'arity', 'name', 'first',
> > // 'second', 'third', 'block', 'else'
> > // ], 4));
> > Does it still apply?
> I have restored arity for literals. I had removed it because with the new type checking stuff, it had become superfluous. Please try it now.
>Being there a good reason for doing so, I don't mind, but this seemed an oversight. After all, if the tree exists at all, it makes sense that it should have enough information to make it worth it.
> I am not promising stability in the tree. JSLint's first mission is to be a code quality tool. If the quest for code quality leads me to breaking the tree, I will break the tree.