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
In http://es6-features.org/#SymbolType
Object.getOwnPropertySymbols(obj) // [ foo, bar ]
Should be
Object.getOwnPropertySymbols(obj) // [ Symbol(), Symbol() ]
Sorry for the dump question, but WHY? Your [ Symbol(), Symbol() ] represents an array of completely new symbols but getOwnPropertySymbols returns an array of exactly the symbols one placed as keys into the object AFAIK. That's what I wanted to express with [ foo, bar ] because these are the constants the symbols were assigned to beforehand in the examples. Why is this wrong?
Yes now I see it is correct. I misunderstood that you meant to show the printed representation of the array, which would be [ Symbol(), Symbol() ] . Sorry for the wrong report and not communicating clearly.
In http://es6-features.org/#SymbolType
Object.getOwnPropertySymbols(obj) // [ foo, bar ]
Should be
Object.getOwnPropertySymbols(obj) // [ Symbol(), Symbol() ]
In http://es6-features.org/#GlobalSymbols
shoud be
Object.getOwnPropertySymbols(obj) // [ Symbol(app.foo), Symbol(app.bar) ]
The text was updated successfully, but these errors were encountered: