Brandon Benvie (2013-11-02T00:08:09.000Z)
On 11/1/2013 4:59 PM, Brandon Benvie wrote:
> On 11/1/2013 4:31 PM, Brandon Benvie wrote:
>> In the spec for Object.prototype.toString:
>>
>> 'If tag is any of "Arguments", "Array", "Boolean", "Date", "Error", 
>> "Function", "Number", "RegExp", or "String" and SameValue(tag, 
>> builtinTag) is false, then let tag be the string value "~" 
>> concatenated with the current value of tag.'
>
> An interesting consequence of this is that a Proxy for any of these 
> will default to being "~" + target class. So 
> `Object.prototype.toString.call(new Proxy([], {}))` is "[object 
> ~Array]". But it seems the shipped has already sailed on Proxies being 
> conspicuously not interchangeable with their targets in many cases...

Actually that's incorrect. Proxies explicitly will return "Proxy" for 
their tag. Same problem though.
domenic at domenicdenicola.com (2013-11-12T18:54:42.490Z)
Actually that's incorrect. Proxies explicitly will return "Proxy" for 
their tag. Same problem though.