File tree
Expand file treeCollapse file tree1 file changed
+9
-2
lines changed Expand file treeCollapse file tree1 file changed
+9
-2
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -109,15 +109,22 @@ const reservedPropertyNames = [
|
109 | 109 | 'filter'
|
110 | 110 | ]
|
111 | 111 |
|
| 112 | +const shouldIgnore = { |
| 113 | +: true, |
| 114 | +arguments: true, |
| 115 | +callee: true, |
| 116 | +caller: true |
| 117 | +} |
| 118 | + |
112 | 119 | function forwardStaticMembers (
|
113 | 120 | Extended: typeof Vue,
|
114 | 121 | Original: typeof Vue,
|
115 | 122 | Super: typeof Vue
|
116 | 123 | ): void {
|
117 | 124 | // We have to use getOwnPropertyNames since Babel registers methods as non-enumerable
|
118 | 125 | Object.getOwnPropertyNames(Original).forEach(key => {
|
119 |
| -// `` should not be overwritten |
120 |
| -if (key === '') { |
| 126 | +// Skip the properties that should not be overwritten |
| 127 | +if (shouldIgnore[key]) { |
121 | 128 | return
|
122 | 129 | }
|
123 | 130 |
|
|
You can’t perform that action at this time.
0 commit comments