Fix typo, so it actually does invoke the setter
This commit is contained in:
parent
0d2fc22af8
commit
c5fab43e7e
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ class User {
|
|||
|
||||
constructor(name) {
|
||||
// invokes the setter
|
||||
this._name = name;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
*!*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue