Closed arv closed 8 years ago
The first two commits are from #2014 and #2018. Only the last commit is relevant for this PR.
I tried this with deleting all Symbol related functions from the global.
LGTM
Sorry, that was due to changes on my branch. I needed to include runtime/runtime.js
as ES5, which used to work. I'll look into it.
Only conditionally override
Object.keys
andObject.getOwnPropertyNames
if there is no native support for Symbol.Private names are now done using a symbol. This symbol gets added to an object as map so that we can filter these out when someone does
Object.getOwnPropertySymbols
.We always override
Object.getOwnPropertySymbols
since we now use symbols for private state.Fixes #1993