2082RE: [jslint] window
- Mar 29, 2011Could this only be enabled if one opts into "use strict"?
From: email@example.com [mailto:firstname.lastname@example.org] On
Behalf Of Douglas Crockford
Sent: Tuesday, March 29, 2011 8:14 AM
Subject: [jslint] window
The Assume a browser option now includes 'window. Most uses of window are in
support of bad practices, but some uses of it are now required by
ES5/strict. For example,
will probably fail in strict mode, while
will probably succeed because strict mode no longer binds this to the global
object in function form invocations.
- << Previous post in topic Next post in topic >>