保誠-保戶業務員媒合平台
HelenHuang
2022-06-09 ab4e8129d5c94ff96e6c85d0d2b66a04a052b4e5
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;