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 (Fix vuejs#1294)
  • Loading branch information
AlexandreBonaventure committed Jun 5, 2020
1 parent 75d6a1c commit 86eca44
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 86eca44

Please sign in to comment.