Merge pull request #2240 from vsemozhetbyt/patch-12

Add missing semicolons in 1.9.2 (Class inheritance)
This commit is contained in:
Ilya Kantor 2020-10-29 19:54:05 +03:00 committed by GitHub
commit 8c39566600
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,8 +76,8 @@ For instance, a function call that generates the parent class:
```js run ```js run
function f(phrase) { function f(phrase) {
return class { return class {
sayHi() { alert(phrase) } sayHi() { alert(phrase); }
} };
} }
*!* *!*
@ -300,7 +300,7 @@ Consider this example:
```js run ```js run
class Animal { class Animal {
name = 'animal' name = 'animal';
constructor() { constructor() {
alert(this.name); // (*) alert(this.name); // (*)