Merge pull request #332 from tomekwi/patch-5

Allow reserved words as keys in ES6 module context
This commit is contained in:
Harrison Shoff
2015-06-25 14:21:48 -07:00

View File

@@ -140,7 +140,7 @@
const item = {};
```
- [3.2](#3.2) <a name='3.2'></a> Don't use [reserved words](http://es5.github.io/#x7.6.1) as keys. It won't work in IE8. [More info](https://github.com/airbnb/javascript/issues/61).
- [3.2](#3.2) <a name='3.2'></a> If your code will be executed in browsers in script context, don't use [reserved words](http://es5.github.io/#x7.6.1) as keys. It won't work in IE8. [More info](https://github.com/airbnb/javascript/issues/61). Its OK to use them in ES6 modules and server-side code.
```javascript
// bad