[jslint] Re: /*global */
- --- In email@example.com, "Douglas Crockford" <douglas@...> wrote:
> So I am keeping /*global */. The variables that it defines will beThank you for reconsidering, that's a very elegant solution.
> const. You can read them and call them,but you can't assign to them.
> That should prevent the confusion that caused my problem.
- --- In firstname.lastname@example.org, "pauanyu" <pcxunlimited@...> wrote:
> "name" needs to be writable. It has no value by default,Which do you think is more likely, that a program wants to change the global name, or that a var name declaration in a function was forgotten? We won't get an implied global warning, but at least we can get a read only warning. I think that is the more useful default.
> but you can assign a string to it, indicating the name of
> the window/tab.