From 23b60dc1975db38c280d8a123aff97544d1673e0 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期四, 09 六月 2022 15:34:21 +0800 Subject: [PATCH] TODO#139890 FAQ 常見問題 1-文案調整 --- PAMapp/node_modules/@babel/plugin-transform-typeof-symbol/lib/index.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/PAMapp/node_modules/@babel/plugin-transform-typeof-symbol/lib/index.js b/PAMapp/node_modules/@babel/plugin-transform-typeof-symbol/lib/index.js index f68f911..6d13a0c 100644 --- a/PAMapp/node_modules/@babel/plugin-transform-typeof-symbol/lib/index.js +++ b/PAMapp/node_modules/@babel/plugin-transform-typeof-symbol/lib/index.js @@ -34,7 +34,7 @@ if (path.parentPath.isBinaryExpression() && _core.types.EQUALITY_BINARY_OPERATORS.indexOf(parent.operator) >= 0) { const opposite = path.getOpposite(); - if (opposite.isLiteral() && opposite.node.value !== "symbol" && opposite.node.value !== "object") { + if (opposite.isStringLiteral() && opposite.node.value !== "symbol" && opposite.node.value !== "object") { return; } } -- Gitblit v1.8.0