On Mar 17, 8:18 pm, Stephan Beal <sgb...@googlemail.com> wrote: > On Wed, Mar 17, 2010 at 8:13 PM, Henrik Lindqvist < > henrik.lindqv...@gmail.com> wrote: > > In my library, not the test code above, I walk the prototype chain > > looking for a native instance with an internal field. Your v8-juice > > seems to do the same. > > Exactly, but it's a template-defined option, whether or not to walk the > prototype chain. (It's only needed for inheritance, so it can be toggled off > as an optimization for classes which don't need it.)
How would the native code know if walking the prototype chain is needed or not? Whouldn't it depend on how the user calls functions in JavaScript code? -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users