Skip to content

Commit f737344

Browse files
committed
use spread syntax
1 parent 0953171 commit f737344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/create-instance/create-instance.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default function createInstance (
6767
vm._renderProxy._t = function (name, feedback, props, bindObject) {
6868
const scopedSlotFn = vm.$_vueTestUtils_scopedSlots[name]
6969
if (scopedSlotFn) {
70-
props = Object.assign({}, bindObject, props)
70+
props = { ...bindObject, ...props }
7171
vm._renderProxy.props = props
7272
return scopedSlotFn.call(vm._renderProxy)
7373
} else {

0 commit comments

Comments
 (0)