On Sat, Jul 27, 2019 at 10:44 AM Cong Zuo <zckevi...@gmail.com> wrote: > > Hey guys. I wonder if it's possible to take snapshot of a running Chrome tab > and using the snapshot blob to start a isolate with Node.js or d8. > > All I need is to capture/snapshot user defined objects and functions only, > which means external functions like DOM API are not included. > > I wrote a simple runtime function called `%TakeSnapshot`, which failed lots > of DCHECKs... > > After some code searching and test, I don't think it's possible to complete > the task with little understanding of the whole project. > > Any advises would be appreciated!
The short answer is "you can't." Snapshots are very closely tied to the environment they were created in. For example, trying to load a snapshot into Node.js version X that was created with Node.js version Y almost certainly won't work. -- -- 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/CAHQurc93ub2EQHGWTXhXyQ1uY9GxbbQteq%2BZa2nUXzt3N77XqA%40mail.gmail.com.