This commit is contained in:
Ilya Kantor 2016-08-25 17:35:33 +03:00
parent b78f329c5f
commit 0818e61927
20 changed files with 264 additions and 163 deletions

View file

@ -114,6 +114,9 @@ Class definition sets `enumerable` flag to `false` for all methods in the `"prot
If there's no `constructor` in the `class` construct, then an empty function is generated, same as `constructor() {}`. So things still work the same way.
```
```smart header="Classes always `use strict`"
All code inside the class construct is automatically in the strict mode.
```
## Class Expression