Merge pull request #981 from CrazyTim/CrazyTim-patch-1
Fix typo, so it actually does invoke the setter
This commit is contained in:
commit
d11039ef2f
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