From 86eca44c76ab3db843d2afd51c7ec0df831eb3dd Mon Sep 17 00:00:00 2001 From: Alexandre Geissmann Date: Fri, 5 Jun 2020 09:19:13 -0400 Subject: [PATCH] fix(runtime-core): use array destructuring instead of object for edge compat (Fix #1294) --- packages/runtime-core/src/componentProps.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/runtime-core/src/componentProps.ts b/packages/runtime-core/src/componentProps.ts index d1989b5c65b..1cd92f243a6 100644 --- a/packages/runtime-core/src/componentProps.ts +++ b/packages/runtime-core/src/componentProps.ts @@ -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) { @@ -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