diff options
author | snek <snek@deno.com> | 2024-09-13 17:28:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-13 17:28:35 -0700 |
commit | 2c0bf6fd65b3276c4818c73028b19819608c8e70 (patch) | |
tree | 8eab21bef4397eb4a8a0cbdba54373539154934e /ext/node/polyfills/internal | |
parent | d162733db2944b4c35d8c3e80f37f7de843dafa1 (diff) |
fix(ext/node): attach console stream properties (#25617)
`kBindStreamsLazy` should be called with `process` during init, but it
never was.
Diffstat (limited to 'ext/node/polyfills/internal')
-rw-r--r-- | ext/node/polyfills/internal/console/constructor.mjs | 5 |
1 files changed, 5 insertions, 0 deletions
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, }; |