aboutsummaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/misc.tsx2
1 files changed, 1 insertions, 1 deletions
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<T = any>(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;