Skip to content

Commit 4a5021e

Browse files
fix(runtime-core): use array destructuring instead of object for edge compat (#1302)
fix #1294
1 parent 75d6a1c commit 4a5021e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/runtime-core/src/componentProps.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export function updateProps(
140140
} = instance
141141
const rawOptions = instance.type.props
142142
const rawCurrentProps = toRaw(props)
143-
const { 0: options } = normalizePropsOptions(rawOptions)
143+
const [options] = normalizePropsOptions(rawOptions)
144144

145145
if ((optimized || patchFlag > 0) && !(patchFlag & PatchFlags.FULL_PROPS)) {
146146
if (patchFlag & PatchFlags.PROPS) {
@@ -220,7 +220,7 @@ function setFullProps(
220220
props: Data,
221221
attrs: Data
222222
) {
223-
const { 0: options, 1: needCastKeys } = normalizePropsOptions(
223+
const [options, needCastKeys] = normalizePropsOptions(
224224
instance.type.props
225225
)
226226
const emits = instance.type.emits

0 commit comments

Comments
 (0)