Y
Hacker News
new
|
ask
|
show
|
jobs
by
mstade
3969 days ago
Additionally, symbols would have provided a neat way to implement private (and privately shared) properties, if they hadn't decided on adding the `getOwnPropertySymbols` function[1]. Bummer.
[1]:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
1 comments
pcwalton
3969 days ago
There were other ways to leak symbols before that method was added. They were never foolproof.
link
mstade
3968 days ago
Oh? Would love to be enlightened!
link