On Sun, Apr 26, 2020 at 1:10 PM Chris Chen <chenqy930...@gmail.com> 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/CAHQurc8KegdFk0rAu1SjFfLgQONQNnOzZVP_c%2Bc3pXYfmS1_PA%40mail.gmail.com.

Reply via email to