1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

Update src/utils.ts

Co-Authored-By: Travis Ralston <travpc@gmail.com>
This commit is contained in:
Zoe
2020-02-05 11:50:39 +00:00
committed by GitHub
parent d60bd22674
commit 77f42c479b

View File

@@ -628,7 +628,7 @@ export function inherits(ctor: Function, superCtor: Function) {
* @param {any} SuperType The type to act as a super instance * @param {any} SuperType The type to act as a super instance
* @param {any} params Arguments to supply to the super type's constructor * @param {any} params Arguments to supply to the super type's constructor
*/ */
export function polyfillSuper(thisArg: any, SuperType: any, ...params: any) { export function polyfillSuper(thisArg: any, SuperType: any, ...params: any[]) {
try { try {
SuperType.call(thisArg, ...params); SuperType.call(thisArg, ...params);
} catch (e) { } catch (e) {