chore: ignore error handling for command wrapping (#14383)
This commit is contained in:
parent
802cd14c3f
commit
834ae62d8d
1 changed files with 1 additions and 1 deletions
|
|
@ -259,7 +259,7 @@ export function o11yClassErrorHandler<T extends ClassType>(errorClass: T): T {
|
|||
|
||||
Object.getOwnPropertyNames(prototype).forEach((methodName) => {
|
||||
const method = prototype[methodName]
|
||||
if (typeof method === 'function' && methodName !== 'constructor') {
|
||||
if (typeof method === 'function' && methodName !== 'constructor' && methodName !== 'commandWrapper') {
|
||||
// In order to preserve this context, need to define like this
|
||||
Object.defineProperty(prototype, methodName, {
|
||||
writable: true,
|
||||
|
|
|
|||
Loading…
Reference in a new issue