* #9985, but simpler

* oops

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
pull/10005/head
Rich Harris 9 months ago committed by GitHub
parent 2ad5e53d53
commit 69f2840e28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -193,11 +193,8 @@ export const javascript_visitors_runes = {
if (property.value.type === 'AssignmentPattern') {
id = property.value.left;
initial = property.value.right;
initial = /** @type {import('estree').Expression} */ (visit(property.value.right));
}
initial = initial
? /** @type {import('estree').Expression} */ (visit(initial))
: undefined;
assert.equal(id.type, 'Identifier');

Loading…
Cancel
Save