mirror of
https://github.com/openharmony/ark_ts2abc.git
synced 2026-07-19 12:33:39 -04:00
delete 0this & 0newTarget in debug mode
Signed-off-by: zhangrengao <zhangrengao1@huawei.com> Change-Id: I264ccddbce272b0bde19bf2a76fb8a0079bbda4f
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user