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/plugin-transform-new-target/lib/index.js | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/PAMapp/node_modules/@babel/plugin-transform-new-target/lib/index.js b/PAMapp/node_modules/@babel/plugin-transform-new-target/lib/index.js index 68198a3..1e37566 100644 --- a/PAMapp/node_modules/@babel/plugin-transform-new-target/lib/index.js +++ b/PAMapp/node_modules/@babel/plugin-transform-new-target/lib/index.js @@ -50,12 +50,12 @@ node } = func; - if (!node.id) { - if (func.isMethod()) { - path.replaceWith(scope.buildUndefinedNode()); - return; - } + if (_core.types.isMethod(node)) { + path.replaceWith(scope.buildUndefinedNode()); + return; + } + if (!node.id) { node.id = scope.generateUidIdentifier("target"); } -- Gitblit v1.8.0