You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user