Merge pull request #2240 from vsemozhetbyt/patch-12
Add missing semicolons in 1.9.2 (Class inheritance)
This commit is contained in:
commit
8c39566600
1 changed files with 3 additions and 3 deletions
|
@ -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); // (*)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue