From 26a09f08cf1ed43c640879f23fdad56c5c9282f7 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期四, 09 六月 2022 15:02:38 +0800 Subject: [PATCH] TODO#139884 Banner 1 文案調整 --- PAMapp/node_modules/@babel/helper-simple-access/lib/index.js | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/PAMapp/node_modules/@babel/helper-simple-access/lib/index.js b/PAMapp/node_modules/@babel/helper-simple-access/lib/index.js index 69bacda..0f19aea 100644 --- a/PAMapp/node_modules/@babel/helper-simple-access/lib/index.js +++ b/PAMapp/node_modules/@babel/helper-simple-access/lib/index.js @@ -19,11 +19,12 @@ unaryExpression } = _t; -function simplifyAccess(path, bindingNames) { +function simplifyAccess(path, bindingNames, includeUpdateExpression = true) { path.traverse(simpleAssignmentVisitor, { scope: path.scope, bindingNames, - seen: new WeakSet() + seen: new WeakSet(), + includeUpdateExpression }); } @@ -32,8 +33,14 @@ exit(path) { const { scope, - bindingNames + bindingNames, + includeUpdateExpression } = this; + + if (!includeUpdateExpression) { + return; + } + const arg = path.get("argument"); if (!arg.isIdentifier()) return; const localName = arg.node.name; -- Gitblit v1.8.0