Skip to content

Commit 379763d

Browse files
committed
Stack update
1 parent 085c778 commit 379763d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/plugin/jsconfuser.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,14 +444,18 @@ function checkStackInvalid(path) {
444444
return
445445
}
446446
const father = path.parentPath
447+
const prop = path.get('property')
448+
const prop_name = safeGetName(prop)
449+
if (father.isUpdateExpression()) {
450+
obj[prop_name] = 1
451+
return
452+
}
447453
if (body_path.scope == father.scope) {
448454
return
449455
}
450456
if (!father.isAssignmentExpression() || path.key !== 'left') {
451457
return
452458
}
453-
const prop = path.get('property')
454-
const prop_name = safeGetName(prop)
455459
obj[prop_name] = 1
456460
},
457461
},

0 commit comments

Comments
 (0)