-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
about getter/setter #9078
Comments
Please post this to https://github.com/nodejs/help/issues or some other channel, this issue tracker is not for general JS questions. |
This was referenced Apr 24, 2023
This was referenced Apr 25, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Room.prototype.mainChannel = { get:function () { return this._mainChannel; }, set:function(value){ this._mainChannel = value; } }
it's working all right.but another not:
Player.prototype.user = { get:function () { return this._user; }, set:function (value) { this._user = value } }
Here is result when I print "player.user":
I don't konw why.Who can tell me why?Thank you!
The text was updated successfully, but these errors were encountered: