After more testing I narrow the input to stdin length for memory to
increase pointing to Node.js and Deno executables to when I call this in
the browser
port.postMessage(new Array((4096*3)+818));
65531
is written to log.txt, which is expected
JSON.stringify(new Array((4096*3)+818)).length //
Appears to be a memory leak in Node.js and Deno when input to stdin (and/or
stdout) is greater than 4096*3. node executable memory usage climbs to
700MB+ then exits when input is new Array(4096*4).
Are there any V8 flags I can use to work around this?
On Saturday, December 31, 2022 at
I created Native Messaging hosts in several programming languages including
C, C++, JavaScript. In JavaScript I created a host specific to QuickJS,
Node.js, Deno. Node.js and Deno depend on V8. I use the same call in the
extension to create hosts
globalThis.name =