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
function f(phrase) {
return class {
sayHi() { alert(phrase) }
}
sayHi() { alert(phrase); }
};
}
*!*
@ -300,7 +300,7 @@ Consider this example:
```js run
class Animal {
name = 'animal'
name = 'animal';
constructor() {
alert(this.name); // (*)