Closed leobalter closed 3 years ago
I like this idea. It feels like a natural complement to #8 . It actually feels simpler to create a fresh wrapped function each time, rather than let wrapped functions through, since then we don't have any sort of issue of having the identity shared on both sides of the Realm boundary.
When I presented
Realm#wrappedCallbackFunction
to the team, @jdalton and @rwaldron suggested we should just wrap it on the go.Do we have any reason to have a separate wrap?
This seems possible. The current polyfill already prevents leakage of function properties.