On Wed, Jan 5, 2011 at 2:38 PM, Matthias Ernst <[email protected]> wrote:
> you do - instead create only one or a bounded number of templates for > foo and use JS functions and scoping to bind different dynamic values > to it. > @Andrey: i believe you could to that by associating the Function object with your accessor function. ObjectTemplate::SetNamedPropertyAccessor() has a 'data' argument to which you can pass the GetFunction()->NewInstance() value. In your property handler, use Arguments::Data() to fetch that Function. At least i _think_ that's how the data parameter works. -- ----- stephan beal http://wanderinghorse.net/home/stephan/ -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
