Re: [v8-users] Questions when adding global object

2018-06-25 Thread Jakob Kummerow
On Mon, Jun 25, 2018 at 8:30 PM zcw wrote: > Thank you so much! > I wanted to save the log to a specific file. I tried using the provided > console but couldn't find where it stored the log message. > On a closer look at the code, it seems that you *have to* provide a ConsoleDelegate if you want

Re: [v8-users] Questions when adding global object

2018-06-25 Thread zcw
Thank you so much! I wanted to save the log to a specific file. I tried using the provided console but couldn't find where it stored the log message. And could the ConsoleDelegate work for the release build? On Monday, June 25, 2018 at 6:14:42 PM UTC-7, Jakob Kummerow wrote: > > V8 now provides

Re: [v8-users] Questions when adding global object

2018-06-25 Thread Jakob Kummerow
V8 now provides its own "console" object, with the usual methods installed on it. Does it not serve your needs? You can override it by providing a ConsoleDelegate via the debug interface. The d8 shell (src/d8.cc) provides an example. On Mon, Jun 25, 2018 at 5:52 PM zwc wrote: > Hello, > we are

[v8-users] Questions when adding global object

2018-06-25 Thread zwc
Hello, we are working on upgrading v8 from 5.3 to 6.7-lkgr. But I recently found a strange behavior for one global object with name "console". In the old version, we have a global object "console" for logging info. But when upgraded to 6.7, the "console"'s callbacks functions won't get called.