From 2f08e7081332141dbdf8003d71d4445f56099f86 Mon Sep 17 00:00:00 2001 From: zhangrengao Date: Mon, 23 May 2022 15:59:28 +0800 Subject: [PATCH] fixed 86f92d1 from https://gitee.com/zhangrengao1/ark_ts2abc/pulls/263 delete 0this & 0newTarget in debug mode Signed-off-by: zhangrengao Change-Id: I264ccddbce272b0bde19bf2a76fb8a0079bbda4f --- ts2panda/src/debuginfo.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ts2panda/src/debuginfo.ts b/ts2panda/src/debuginfo.ts index f002c920a1..0a0094c3af 100644 --- a/ts2panda/src/debuginfo.ts +++ b/ts2panda/src/debuginfo.ts @@ -326,6 +326,9 @@ export class DebugInfo { if (!value.hasAlreadyBinded()) { return; } + if (value.getName() == "0this" || value.getName() == "0newTarget") { + return; + } let variableInfo = new VariableDebugInfo(key, "any", "any", (value.getVreg().num)); variableInfo.setStart(scope.getScopeStartInsIdx()); variableInfo.setLength(scope.getScopeEndInsIdx() - scope.getScopeStartInsIdx()); -- Gitee