Skip to content

Commit 24d7fc2

Browse files
refactor: replace Object.assign with extend
1 parent 61c3c8e commit 24d7fc2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/runtime-core/src/componentPublicInstance.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,7 @@ export const PublicInstanceProxyHandlers: ProxyHandler<any> = {
381381
return desc.get.call(instance.proxy)
382382
} else {
383383
const val = globalProperties[key]
384-
return isFunction(val)
385-
? Object.assign(val.bind(instance.proxy), val)
386-
: val
384+
return isFunction(val) ? extend(val.bind(instance.proxy), val) : val
387385
}
388386
} else {
389387
return globalProperties[key]

0 commit comments

Comments
 (0)