From ab4e8129d5c94ff96e6c85d0d2b66a04a052b4e5 Mon Sep 17 00:00:00 2001
From: HelenHuang <LinHuang@pollex.com.tw>
Date: 星期四, 09 六月 2022 15:26:15 +0800
Subject: [PATCH] TODO#139888 嚴選配對 - 文案修改

---
 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