Thanks for the hints, I will try go through that later.

在 2020年4月27日星期一 UTC+8上午6:53:38,Ben Noordhuis写道:
>
> On Sun, Apr 26, 2020 at 1:10 PM Chris Chen <chenqy...@gmail.com 
> <javascript:>> wrote: 
> > 
> > Umm, I used d8 to run this js file, it worked fine. In this case , how 
> to find out where throws this exception? 
>
> The short answer is "you don't", at least not easily. :-) 
>
> mksnapshot won't print JS error messages or stack traces. The one 
> thing I can tell you is that it's _probably_ not a runtime exception 
> but a parse error., otherwise the assert would have been different. 
> The snapshot scripts should be plain JS scripts, not ES modules. 
>
> Oh, and keep in mind that d8 runs your script in a JS environment with 
> a lot of extras. mksnapshot is just a bare bones execution context. 
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
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 v8-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-users/89b9ef8f-4785-4b98-98a0-d858b3d7ad20%40googlegroups.com.

Reply via email to