delete 0this & 0newTarget in debug mode

Signed-off-by: zhangrengao <zhangrengao1@huawei.com>
Change-Id: I264ccddbce272b0bde19bf2a76fb8a0079bbda4f
This commit is contained in:
zhangrengao
2022-05-23 15:59:28 +08:00
parent a0e05421e1
commit 86f92d1ad2
+3
View File
@@ -321,6 +321,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());