Skip to content
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

Getters & Setters supported in ES5 #26

Closed
RoyTinker opened this issue Apr 23, 2015 · 1 comment
Closed

Getters & Setters supported in ES5 #26

RoyTinker opened this issue Apr 23, 2015 · 1 comment

Comments

@RoyTinker
Copy link

Just an issue I saw on the "getters and setters" page. ES5 does support literal getters and setters in object literals. Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get

rse added a commit that referenced this issue Apr 25, 2015
…rted them (but just in Object Initializers). This resolves issue #26
@rse
Copy link
Owner

rse commented Apr 25, 2015

Good catch. Actually it is supported since ES5.1, but only in Object Initializers. I've changed the example now. Thanks for the hint.

@rse rse closed this as completed Apr 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants