Skip to content

Commit

Permalink
fix(runtime-core): use array destructuring instead of object for edge…
Browse files Browse the repository at this point in the history
… compat (#1302)

fix #1294
  • Loading branch information
AlexandreBonaventure authored Jun 5, 2020
1 parent 75d6a1c commit 4a5021e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/runtime-core/src/componentProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export function updateProps(
} = instance
const rawOptions = instance.type.props
const rawCurrentProps = toRaw(props)
const { 0: options } = normalizePropsOptions(rawOptions)
const [options] = normalizePropsOptions(rawOptions)

if ((optimized || patchFlag > 0) && !(patchFlag & PatchFlags.FULL_PROPS)) {
if (patchFlag & PatchFlags.PROPS) {
Expand Down Expand Up @@ -220,7 +220,7 @@ function setFullProps(
props: Data,
attrs: Data
) {
const { 0: options, 1: needCastKeys } = normalizePropsOptions(
const [options, needCastKeys] = normalizePropsOptions(
instance.type.props
)
const emits = instance.type.emits
Expand Down

0 comments on commit 4a5021e

Please sign in to comment.