diff options
author | Steven Guerrero <stephenguerrero43@gmail.com> | 2020-11-26 07:50:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-26 13:50:08 +0100 |
commit | 9042fcc12e7774cdd0ca3a5d08918a07dae8102b (patch) | |
tree | 8b5ff11412aae9bb714e0bb0b9b0358db64a8657 /std/node/_errors.ts | |
parent | 60e980c78180ee3b0a14d692307be275dc181c8d (diff) |
feat(std/node/stream): Add Duplex, Transform, Passthrough, pipeline, finished and promises (#7940)
Diffstat (limited to 'std/node/_errors.ts')
-rw-r--r-- | std/node/_errors.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/node/_errors.ts b/std/node/_errors.ts index 2424303b1..db37e3186 100644 --- a/std/node/_errors.ts +++ b/std/node/_errors.ts @@ -1232,7 +1232,7 @@ export class ERR_INVALID_BUFFER_SIZE extends NodeRangeError { } } export class ERR_INVALID_CALLBACK extends NodeTypeError { - constructor(object: { [key: string]: unknown }) { + constructor(object: unknown) { super( "ERR_INVALID_CALLBACK", `Callback must be a function. Received ${JSON.stringify(object)}`, |