From b83e8f46f25a51810acd10445d0224e73e52105f Mon Sep 17 00:00:00 2001 From: QLXWS <2223081789@qq.com> Date: Thu, 7 Sep 2023 11:05:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=87=AA=E5=AE=9A=E4=B9=89=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E7=BB=91=E5=AE=9A=EF=BC=88catch:xxx=EF=BC=89=E8=BD=AC?= =?UTF-8?q?=E6=8D=A2=E5=8E=BB=E9=99=A4this.privateStopNoop=E5=8C=85?= =?UTF-8?q?=E8=A3=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taroize/src/wxml.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/packages/taroize/src/wxml.ts b/packages/taroize/src/wxml.ts index 9042f17186ec..171f974eece6 100644 --- a/packages/taroize/src/wxml.ts +++ b/packages/taroize/src/wxml.ts @@ -861,15 +861,7 @@ function parseAttribute (attr: Attribute) { jsxValue = t.jSXExpressionContainer(t.memberExpression(t.thisExpression(), t.identifier('privateStopNoop'))) globals.hasCatchTrue = true } else if (t.isStringLiteral(jsxValue)) { - jsxValue = t.jSXExpressionContainer( - t.callExpression( - t.memberExpression( - t.memberExpression(t.thisExpression(), t.identifier('privateStopNoop')), - t.identifier('bind') - ), - [t.thisExpression(), t.memberExpression(t.thisExpression(), t.identifier(jsxValue.value))] - ) - ) + jsxValue = t.jSXExpressionContainer(t.memberExpression(t.thisExpression(), t.identifier(jsxValue.value))) } } return t.jSXAttribute(t.jSXIdentifier(jsxKey), jsxValue)