Help wanted: Membrane proxies + Object.freeze() == paradox

Boris Zbarsky bzbarsky at
Tue May 23 12:25:05 UTC 2017

On 5/23/17 3:44 AM, Alex Vincent wrote:
>  3. I create matching "membrane" proxies for wetB and wet_b named dryB
>     and dry_b,

Shouldn't you also have a proxy for webB.prototype (called dryproto, 
let's say)?  Otherwise your "wet" and "dry" object graphs are actually a 
single kind of weird object graph...

> Then:
>   * Reflect.get(wetB, "prototype") === Reflect.getPrototypeOf(wet_b)
>   * Reflect.get(dryB, "prototype") !== Reflect.getPrototypeOf(dry_b)

And then Reflect.get(dryB, "prototype") === dryproto === 
Reflect.getPrototypeOf(dry_b), I would hope.


More information about the es-discuss mailing list