From 2c0bf6fd65b3276c4818c73028b19819608c8e70 Mon Sep 17 00:00:00 2001 From: snek Date: Fri, 13 Sep 2024 17:28:35 -0700 Subject: fix(ext/node): attach console stream properties (#25617) `kBindStreamsLazy` should be called with `process` during init, but it never was. --- ext/node/polyfills/02_init.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ext/node/polyfills/02_init.js') diff --git a/ext/node/polyfills/02_init.js b/ext/node/polyfills/02_init.js index 8a4aa8e97..b25f7ad57 100644 --- a/ext/node/polyfills/02_init.js +++ b/ext/node/polyfills/02_init.js @@ -82,3 +82,8 @@ nodeGlobals.setImmediate = nativeModuleExports["timers"].setImmediate; nodeGlobals.setInterval = nativeModuleExports["timers"].setInterval; nodeGlobals.setTimeout = nativeModuleExports["timers"].setTimeout; nodeGlobals.performance = nativeModuleExports["perf_hooks"].performance; + +nativeModuleExports["internal/console/constructor"].bindStreamsLazy( + nativeModuleExports["console"], + nativeModuleExports["process"], +); -- cgit v1.2.3