Skip to content

Commit

Permalink
codegen: small destructure fix
Browse files Browse the repository at this point in the history
  • Loading branch information
BobVarioa committed Jul 29, 2024
1 parent f8cc8a9 commit a173b2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/codegen.js
Original file line number Diff line number Diff line change
Expand Up @@ -3387,7 +3387,7 @@ const generateVarDstr = (scope, kind, pattern, init, defaultValue, global) => {
type: 'MemberExpression',
object: { type: 'Identifier', name: tmpName },
property: prop.key,
computed: prop.computed
computed: prop.computed || prop.key.type !== 'Identifier'
}, undefined, global)
);
}
Expand Down

0 comments on commit a173b2f

Please sign in to comment.