Hello,
Is there a way to get a function's prototype, equivalent to the
function's 'prototype' property, e.g.:

function Func()
{}
var a = Func.prototype;

Using Object::GetPrototype() does not do the same and returns a
different value. Setting an object's prototype via SetPrototype() to
the property value gives the desired effect of instanceof recognizing
the object as constructed by the function. Setting the prototype to
the function's GetPrototype() does not achieve this.
>From the doc I don't see a way to access the "prototype" property of a
function, besides getting it as an ordinary property via  func-
>Get(String::New("prototype"));
Am I missing something?

Greetings
Alex

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

Reply via email to