diff --git a/src/component.ts b/src/component.ts index ded5b29..6524e7c 100644 --- a/src/component.ts +++ b/src/component.ts @@ -109,6 +109,13 @@ const reservedPropertyNames = [ 'filter' ] +const shouldIgnore = { + prototype: true, + arguments: true, + callee: true, + caller: true +} + function forwardStaticMembers ( Extended: typeof Vue, Original: typeof Vue, @@ -116,8 +123,8 @@ function forwardStaticMembers ( ): void { // We have to use getOwnPropertyNames since Babel registers methods as non-enumerable Object.getOwnPropertyNames(Original).forEach(key => { - // `prototype` should not be overwritten - if (key === 'prototype') { + // Skip the properties that should not be overwritten + if (shouldIgnore[key]) { return }
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: