From e0bbdd89bd33b1ed7361e316f137f3bfde34aff8 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Sat, 8 Oct 2022 21:11:14 +0200 Subject: fix lazyWebpack.construct, lint uwuify --- src/utils/misc.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils') diff --git a/src/utils/misc.tsx b/src/utils/misc.tsx index 2ebf91c..f2228f8 100644 --- a/src/utils/misc.tsx +++ b/src/utils/misc.tsx @@ -25,7 +25,7 @@ export function lazyWebpack(filter: FilterFn): T { has: (_, prop) => prop in getMod(), apply: (_, $this, args) => (getMod() as Function).apply($this, args), ownKeys: () => Reflect.ownKeys(getMod()), - construct: (_, args, newTarget) => new newTarget(...args), + construct: (_, args, newTarget) => Reflect.construct(getMod(), args, newTarget), deleteProperty: (_, prop) => delete getMod()[prop], defineProperty: (_, property, attributes) => !!Object.defineProperty(getMod(), property, attributes) }) as T; -- cgit