Skip to content

Commit 460a5bb

Browse files
committed
Fix WarnMemoryLeak build error.
Removed unreachable nullish coalescing from WarnMemoryLeak constructor wrapping to satisfy the TypeScript build. Type of change: Marked as a non-breaking bug fix. Testing: Ran npm run build.
1 parent 1c4704e commit 460a5bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/debugging/WarnMemoryLeak.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function WarnMemoryLeak(
4848
// A constructable wrapper that preserves `new.target` and static inheritance.
4949
function Wrapped(this: any, ...args: any[]) {
5050
// Build instance of Base, respecting `new.target` for derived classes.
51-
const self = Reflect.construct(Base, args, new.target ?? Wrapped) as object;
51+
const self = Reflect.construct(Base, args, new.target) as object;
5252

5353
const start = readMem();
5454
if (start !== undefined) {

0 commit comments

Comments
 (0)