Skip to content

Commit 10f6d6a

Browse files
committed
Merge pull request airbnb#332 from tomekwi/patch-5
Allow reserved words as keys in ES6 module context
2 parents 38d2282 + ee89999 commit 10f6d6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
const item = {};
141141
```
142142
143-
- [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).
143+
- [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.
144144

145145
```javascript
146146
// bad

0 commit comments

Comments
 (0)