Re: [heycam/webidl] Use OrdinarySet instead of [[Set]] (#201)

> Our [[Set]] sets an internal slot on the platform object 

It's complicated, because you can get lots of calls to [[GetOwnProperty]] under the [[Set]] call (and in fact can run arbitrary amounts of script under there), but we only want to affect the one specific [[GetOwnProperty]] that looks up that one property at the beginning of OrdinarySet.

We could set the flag in our [[Set]] and then have the very first [[GetOwnProperty]] call unset the flag before carrying on.  But now we're making assumptions about the internals of the default [[Set]] or OrdinarySet and what internal methods it invokes in which order...

-- 
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/201#issuecomment-256045746

Received on Tuesday, 25 October 2016 14:11:25 UTC