Commit ee89999
Tomek Wiszniewski
Allow reserved words as keys in ES6 module context
`<script type="module">` and *node*/*iojs* code imply full support of ES5.
Code transpiled by *babel* is also perfecly safe:
```js
$ cat <<––– | babel
const superman = {
default: { clark: 'kent' },
private: true
};
–––
"use strict";
var superman = {
"default": { clark: "kent" },
"private": true
};
```1 parent 38d2282 commit ee89999
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
0 commit comments