Hi all! I have a question about `Error.prepareStackTrace`. I want to
collect all stacks of error and do not affect the user. V8 document said
`the custom prepareStackTrace function is only called once the stack
property of Error object is accessed`. And the code as follows works. Does
this
settimeout 是宿主实现的,V8 没有。
在2021年10月30日星期六 UTC+8 16:54:23 写道:
> v8怎么设置settimeout
>
--
--
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
y works locally and just prints the exceptions.
>
> On Thu, Jul 21, 2022 at 10:44 AM theratliter theratliter <
> thera...@gmail.com> wrote:
>
>> Hi all! I have a question about `Error.prepareStackTrace`. I want to
>> collect all stacks of error and do not affe
Interesting! What i know is we just can run context one by one in an
isolate per thread. For example
```
const vm = require('vm');
try {
// Node.js call TerminateExecution after 5 ms, then call
CancelTerminateExecution and throw a timeout error
vm.runInNewContext('while(1) {}', {}, {
scriptParsed message, it do not send a
> Debugger.getScriptSource message to my inspector server.
> [image: WechatIMG865.png]
>
> 在2022年10月1日星期六 UTC+8 17:22:25 写道:
>
>> On Sat, Oct 1, 2022 at 1:14 AM theratliter theratliter
>> wrote:
>> >
>> > Hi,
spector server.
>> [image: WechatIMG865.png]
>>
>> 在2022年10月1日星期六 UTC+8 17:22:25 写道:
>>
>>> On Sat, Oct 1, 2022 at 1:14 AM theratliter theratliter
>>> wrote:
>>> >
>>> > Hi, i am trying to write an inspector server by V8 ins
022 at 11:48 AM theratliter theratliter
> wrote:
> >
> > Hi, Ben. I think i misunderstand the dev tools. when i enter ctrl + p
> and input a js file name, dev tools will emit Debugger.getScriptSource.
>
> Right. I don't know DevTools's code well enough to say for sure but
Hi, i compile V8(10.8) with -DV8_COMPRESS_POINTERS, but when i run the code
it crashes with the error as follows.
```
Embedder-vs-V8 build configuration mismatch. On embedder side sandbox is
DISABLED while on V8 side it's ENABLED.
```
Does anybody know why ? thanks!
--
--
v8-users mailing
1. it maybe related to my PC or compiler ?
在2022年10月3日星期一 UTC+8 02:26:10 写道:
> On Sun, Oct 2, 2022 at 5:49 PM theratliter theratliter
> wrote:
> >
> > Hi, i compile V8(10.8) with -DV8_COMPRESS_POINTERS, but when i run the
> code it crashes with the error as follows.
>
Hi, i am trying to write an inspector server by V8 inspector APIs, but
chrome dev tool do not emit 'Debugger.getScriptSource' request to my
inspector server when dev tool get a 'Debugger.scriptParsed' push event.
Does anybody know know about this ? Thanks !
--
--
v8-users mailing list
This is the content of ''Debugger.scriptParsed'' event.
{
"method": "Debugger.scriptParsed",
"params": {
"scriptId": "6",
"url": "test/loader/module",
"startLine": 0,
"startColumn": 0,
"endLine": 2,
"endColumn": 2,
15f44a326bb6af662ce32e75333276373be94728/BUILD.gn#L331>
>
> <https://github.com/v8/v8/blob/15f44a326bb6af662ce32e75333276373be94728/BUILD.gn#L331>
>
>
> On Oct 2, 2022, at 14:39, theratliter theratliter
> wrote:
>
> Oh, sorry, i mean i compile my code with -DV8_COMPRE
or like this.
```
const { Worker, isMainThread } = require('worker_threads');
if (isMainThread) {
let worker;
while(global.stop !== 1) {
if (!worker) {
worker = new Worker(__filename);
}
}
} else {
const inspector = require('inspector');
const fs = require('fs');
const
Hi, all ! i remember that we can not run JS code in v8::RequestInterrupt,
But i find i can run JS code by posting a `Runtime.evaluate` command to
V8 in v8::RequestInterrupt. My test is as follows (v8::RequestInterrupt is
used by session.connectToMainThread() to post a message to v8).
```
I find "stack roots" in heapsnapshot in Node.js v16.18.1, i think it is
related to V8 Version. Thanks .
在2023年4月5日星期三 UTC+8 17:51:31 写道:
> I thought i can see "stack roots" in heapsnapshot
>
> Ben Noordhuis 于2023年4月5日 周三16:39写道:
>
>> Can you explain what exactly you find surprising?
>>
>> --
I find "stack roots" in heapsnapshot in Node.js v16.18.1, i think it is
related to V8 Version. Thanks .
在2023年4月5日星期三 UTC+8 17:51:31 写道:
> I thought i can see "stack roots" in heapsnapshot
>
> Ben Noordhuis 于2023年4月5日 周三16:39写道:
>
>> Can you explain what exactly you find surprising?
>>
>> --
I thought i can see "stack roots" in heapsnapshot
Ben Noordhuis 于2023年4月5日 周三16:39写道:
> Can you explain what exactly you find surprising?
>
> --
> --
> v8-users mailing list
> v8-users@googlegroups.com
> http://groups.google.com/group/v8-users
> ---
> You received this message because you are
Hi all ! does anyone know what the "Stack root" means ? the memory hold by
stack variable ?[image: 飞书20230404-193425.jpg]
--
--
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
I find "stack roots" in heapsnapshot in Node.js v16.18.1, i think it is
related to V8 Version. Thanks .
在2023年4月5日星期三 UTC+8 16:39:15 写道:
Can you explain what exactly you find surprising?
--
--
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
---
You
>From the code point of view (v8/src/base/platform/time.cc), it seems that
the implementation is different under different systems?
在2023年8月1日星期二 UTC+8 01:08:26 写道:
> hello, anyone ! Does anyone know what startTime is in the cpu profile, it
> seems to be the time since the system starts ?
>
hello, everyone ! Does anyone know what the `startTime` is in the cpu
profile. From the code point of view (v8/src/base/platform/time.cc), it
seems that the implementation is different under different systems?[image:
20230801-010505.jpeg]
--
--
v8-users mailing list
v8-users@googlegroups.com
Thanks, Ben. What does the "ts" field mean ? i can not find this field in
cpu profile. I want to find the corresponding samples of the code that was
executed at a certain time.
在2023年8月1日星期二 UTC+8 04:21:59 写道:
> On Mon, Jul 31, 2023 at 7:58 PM theratliter theratliter
> wrot
Get it, thanks !
在2023年8月2日星期三 UTC+8 16:27:01 写道:
> On Tue, Aug 1, 2023 at 1:22 PM theratliter theratliter
> wrote:
> >
> > Thanks, Ben. What does the "ts" field mean ? i can not find this field
> in cpu profile. I want to find the corresponding samples o
Hi, all ! What is the difference between isolate::SetPromiseHooks and
Context::SetPromiseHooks
--
--
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
24 matches
Mail list logo