Thank you for your answer, I achieved it by changing v8 source code. 在 2013年11月8日星期五UTC+8下午4时01分27秒,Jakob Kummerow写道: > > No. > > > On Fri, Nov 8, 2013 at 8:56 AM, Michael demiGod <[email protected]<javascript:> > > wrote: > >> script: >> >> 1 document.write('foo'); >> >> 2 var str = 'hello' + 'world'; >> >> 3 ... >> >> >> cpp: >> >> v8::TryCatch try_catch; >> >> v8::Handle result = script->Run(); >> >> >> result: >> >> test.js:1: Uncaught ReferenceError: document is not defined >> >> >> Although I can use v8::trycatch to get exception info, I'll miss the >> following script. >> >> Is there any way to continue running script and get 'helloworld', >> ignoring the Uncaught ReferenceError of first line? >> >> -- >> -- >> v8-users mailing list >> [email protected] <javascript:> >> http://groups.google.com/group/v8-users >> --- >> You received this message because you are subscribed to the Google Groups >> "v8-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> > >
-- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
