Skip to content

Conversation

crdev
Copy link

@crdev crdev commented Mar 5, 2014

According to http://es5.github.io/#C, "When a simple assignment occurs within strict mode code, its LeftHandSide must not evaluate to an unresolvable Reference. If it does a ReferenceError exception is thrown (8.7.2)". Also, var in the global scope defines properties on the global object (http://es5.github.io/#x10.4.1.1).

@cemerick
Copy link
Owner

cemerick commented Mar 6, 2014

Thanks!

@cemerick cemerick closed this Mar 6, 2014
@cemerick cemerick reopened this Mar 6, 2014
cemerick added a commit that referenced this pull request Mar 6, 2014
Make the difflib code ES5 strict mode-compliant
@cemerick cemerick merged commit 0fcca11 into cemerick:master Mar 6, 2014
@crdev crdev deleted the StrictModeCompliant branch March 14, 2014 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants