Skip to content

Commit 9631424

Browse files
bombillazosoedirgo
authored andcommitted
fix: replace super with this inside FunctionsError
constructor
1 parent af4113a commit 9631424

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class FunctionsError extends Error {
1818
context: any
1919
constructor(message: string, name = 'FunctionsError', context?: any) {
2020
super(message)
21-
super.name = name
21+
this.name = name
2222
this.context = context
2323
}
2424
}

0 commit comments

Comments
 (0)