← Back to release summary

Sloppy mode block bindings (let, class, const, function) (ES6)

Category
JavaScript
Type
New or changed feature
Status
Enabled by default (Chrome 49)
Intent stage
None

Summary

Enable ES6-style block-scoped bindings including let and class in sloppy mode, and modify semantics of const and function to operate according to ES6 in sloppy mode.

Standards & signals

Docs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/class

View on chromestatus.com