We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2219125 commit d024dccCopy full SHA for d024dcc
src/component.ts
@@ -109,15 +109,22 @@ const reservedPropertyNames = [
109
'filter'
110
]
111
112
+const shouldIgnore = {
113
+ prototype: true,
114
+ arguments: true,
115
+ callee: true,
116
+ caller: true
117
+}
118
+
119
function forwardStaticMembers (
120
Extended: typeof Vue,
121
Original: typeof Vue,
122
Super: typeof Vue
123
): void {
124
// We have to use getOwnPropertyNames since Babel registers methods as non-enumerable
125
Object.getOwnPropertyNames(Original).forEach(key => {
- // `prototype` should not be overwritten
- if (key === 'prototype') {
126
+ // Skip the properties that should not be overwritten
127
+ if (shouldIgnore[key]) {
128
return
129
}
130
0 commit comments