Re: [heycam/webidl] Are operations on the `[[BackingMap]]` and `[[BackingSet]]` page-hookable? And if not, why not? (#254)

I am working on RTCStatsReport right now.
I am about to land support for it (option 1 right now, but will change to option 3) at https://bugs.webkit.org/show_bug.cgi?id=166916.

Returning a MapIterator in WebKit requires creating a JS backing map/backing set.
This is ok for RTCStatsReport since our implementation would keep just one map.
In the case of FontFaceSet, we might need to keep two sets though, the JS backing set and the "DOM" backing set. Of course, we would need to keep them in sync. This is not appealing.

I would prefer removing the backing set/backing map idea and come up with a solution that allows exposing directly any map-like structure. That might require defining some sort of MapLikeIterator/SetLikeIterator. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/254#issuecomment-282772856

Received on Monday, 27 February 2017 16:35:06 UTC