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/internal/console/constructor.mjs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ext/node/polyfills/internal') diff --git a/ext/node/polyfills/internal/console/constructor.mjs b/ext/node/polyfills/internal/console/constructor.mjs index 8f4689962..ebf5cbec4 100644 --- a/ext/node/polyfills/internal/console/constructor.mjs +++ b/ext/node/polyfills/internal/console/constructor.mjs @@ -667,10 +667,15 @@ Console.prototype.dirxml = Console.prototype.log; Console.prototype.error = Console.prototype.warn; Console.prototype.groupCollapsed = Console.prototype.group; +export function bindStreamsLazy(console, object) { + Console.prototype[kBindStreamsLazy].call(console, object); +} + export { Console, formatTime, kBindProperties, kBindStreamsLazy }; export default { Console, kBindStreamsLazy, kBindProperties, formatTime, + bindStreamsLazy, }; -- cgit v1.2.3