There is no such facility in V8. An exception will be thrown when invoking undefined as a function. In the catch handler (either in JavaScript or C++) there is not way of continuing execution just after then where the exception occurred as the execution stack is already unwound at that point. To have a mocked-up DOM running JavaScript using the DOM you will have to provide at least an empty implementation of the function called. Regards, Søren
On Mon, Dec 1, 2008 at 9:52 PM, v8 <[EMAIL PROTECTED]> wrote: > > Does v8 provide a mechanism for catching undefined functions and > continuing execution on the following line? I only ask because I am > mocking up a DOM and only care about a very limited subset of > functionality. Wrapping the entire file in a try/catch block is > unnacceptable unless there is a way to provide the functionality I > described above. Thanks a lot for the help! > > > --~--~---------~--~----~------------~-------~--~----~ v8-users mailing list [email protected] http://groups.google.com/group/v8-users -~----------~----~----~----~------~----~------~--~---
