mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
fix: missing emitWarning
import (#24587)
We were missing an import of `emitWarning` in our streams implementation. The code prior to this PR assumed that `process` would be available as a global. Fixes https://github.com/denoland/deno/issues/23709 --------- Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit is contained in:
parent
afcae364be
commit
c77b8b96ef
1 changed files with 2 additions and 1 deletions
|
@ -46,6 +46,7 @@ import {
|
|||
} from "ext:deno_node/internal/validators.mjs";
|
||||
import { spliceOne } from "ext:deno_node/_utils.ts";
|
||||
import { nextTick } from "ext:deno_node/_process/process.ts";
|
||||
import { nodeGlobals } from "ext:deno_node/00_globals.js";
|
||||
|
||||
const kCapture = Symbol("kCapture");
|
||||
const kErrorMonitor = Symbol("events.errorMonitor");
|
||||
|
@ -468,7 +469,7 @@ function _addListener(target, type, listener, prepend) {
|
|||
w.emitter = target;
|
||||
w.type = type;
|
||||
w.count = existing.length;
|
||||
process.emitWarning(w);
|
||||
nodeGlobals.process.emitWarning(w);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue