mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 02:47:57 -05:00
Merge pull request #332 from tomekwi/patch-5
Allow reserved words as keys in ES6 module context
This commit is contained in:
@@ -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). It’s OK to use them in ES6 modules and server-side code.
|
||||
|
||||
```javascript
|
||||
// bad
|
||||
|
||||
Reference in New Issue
Block a user