Skip to content

Commit 96d2570

Browse files
committed
fix stripWith + array destructuring
1 parent 4d514d4 commit 96d2570

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

buble.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7023,6 +7023,8 @@ var Identifier$1 = (function (Node$$1) {
70237023
!(this.parent.type === 'Property' && this.parent.key === this && !this.parent.computed) &&
70247024
// not a property of a MemberExpression
70257025
!(this.parent.type === 'MemberExpression' && this.parent.property === this && !this.parent.computed) &&
7026+
// not in an Array destructure pattern
7027+
!(this.parent.type === 'ArrayPattern') &&
70267028
// skip globals + commonly used shorthands
70277029
!hash[this.name] &&
70287030
// not already in scope

0 commit comments

Comments
 (0)