On Mon, Mar 30, 2009 at 8:15 AM, Ondrej Zara <[email protected]> wrote:
> - "new" ignores return value of ctor function;
> - "new" sets the hidden _proto_ property so prototype inheritance works;
> - "new" call uses "this" keyword as a reference to new instance being
> created, non-new call uses current scope (global or any other if ".call"ed
> or ".apply"ed).

Wow, that's a lot of differences. i can see the benefit of this
distinction in JS-side constructors, but for bound types i'm still
having trouble finding a use for the distinction. Nonetheless, since
there is such a difference i guess i'll have to add a flag for class
binders to toggle it with.

Thanks for the clarification! :)

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/

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

Reply via email to