You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same issue happens with Babel. The solution would be to use Object.getOwnPropertyDescriptors() to get properties with their values and/or getters/setters, instead of just iterating over properties.
TypeScript Version: 2.9.1
Search Terms:
object spread getter
Code
Expected behavior:
1 1
Actual behavior:
undefined 1
The proposal says that
get x()
should not be called (section Getters on the Object Initializer).Executing the code in Chrome (66) console produces the expected behavior.
Playground Link:
link
The text was updated successfully, but these errors were encountered: