Add missing semicolons in 1.9.2 (Class inheritance)

This commit is contained in:
Vse Mozhe Buty 2020-10-27 19:24:45 +02:00 committed by GitHub
parent 2d5be7b730
commit 9a3567857d
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); // (*)