Updates:
        Cc: [email protected] [email protected] [email protected]

Comment #3 on issue 2075 by [email protected]: Implement AccessorInfo.IsInstanceOf()
http://code.google.com/p/v8/issues/detail?id=2075

I have started implementing this. After some discussion with Andreas and Danno (CCed) we think that the cleanest way to do this is to let V8 itself throw the TypeError in cases where the instance check fails. This means ...

1) The fast case where the instance check succeeds will work without any changes to the callback on the Webkit bindings side.

2) The slow case where the DOM spec expects us to throw a TypeError when the instance check fails will also work without modifications to the callback, given that the accessor was configured correctly.

3) The slow case where the DOM spec expects us to implement a different behavior when the instance check fails (i.e. [LenientThis]), will still need an explicit call to FunctionTemplate::HasInstance(). But I don't know if [LenientThis] is even used in the DOM spec.

@Haraken: Can you confirm that such a support will work for you? I'll upload a first CL today with an implementation and put you on CC. That way you can see how the new API will look like and comment on that if needed.

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

Reply via email to