Merge pull request #981 from CrazyTim/CrazyTim-patch-1

Fix typo, so it actually does invoke the setter
This commit is contained in:
Ilya Kantor 2019-05-15 15:11:29 +03:00 committed by GitHub
commit d11039ef2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -241,7 +241,7 @@ class User {
constructor(name) {
// invokes the setter
this._name = name;
this.name = name;
}
*!*