Skip to content

Commit

Permalink
fixup!
Browse files Browse the repository at this point in the history
Co-authored-by: Antoine du Hamel <[email protected]>
  • Loading branch information
Aviv Keller and aduh95 authored Oct 26, 2024
1 parent dd7828b commit 4235f74
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/internal/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,7 @@ function deprecate(fn, msg, code, useEmitSync) {
}

function deprecateInstantation(target, code, ...args) {
if (code !== undefined)
lazyValidateString()(code, 'code');
assert(typeof code === 'string');

Check failure on line 179 in lib/internal/util.js

View workflow job for this annotation

GitHub Actions / lint-js-and-md

'assert' is not defined

getDeprecationWarningEmitter(code, `Instantiating ${target.name} without the 'new' keyword has been deprecated.`, target)();

Expand Down

0 comments on commit 4235f74

Please sign in to comment.