On Tue, May 3, 2011 at 10:01 PM, Stephan Beal <[email protected]> wrote:

> On Tue, May 3, 2011 at 9:51 PM, Mads Sig Ager <[email protected]> wrote:
>
>> The type testing and casting is implemented in terms of the actual
>> JavaScript values and therefore Date and RegExp objects can be casted to
>> Object even though the API inheritance hierarchy does not reflect the fact
>> that they are objects.
>
>
> Does "can be casted" mean that such casts are legal, or that it "just
> happens to work"?
>

They are perfectly legal. Date and regexps *are* JS objects.

Cheers,    -- Mads


> --
> ----- stephan beal
> http://wanderinghorse.net/home/stephan/
>
> --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users
>

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to