Skip to content

Commit 82458b2

Browse files
refactor: replace Object.assign with extend (#8988)
1 parent ae36b1a commit 82458b2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/runtime-core/src/componentPublicInstance.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,9 +396,7 @@ export const PublicInstanceProxyHandlers: ProxyHandler<any> = {
396396
return desc.get.call(instance.proxy)
397397
} else {
398398
const val = globalProperties[key]
399-
return isFunction(val)
400-
? Object.assign(val.bind(instance.proxy), val)
401-
: val
399+
return isFunction(val) ? extend(val.bind(instance.proxy), val) : val
402400
}
403401
} else {
404402
return globalProperties[key]

0 commit comments

Comments
 (0)