diff --git a/ts2panda/src/compiler.ts b/ts2panda/src/compiler.ts index b323fc7b57b1b4b19bf7d1b31ca0b52fa3ff48bd..d576ff58dbb62b6eb9618f6a779e73f5150f557f 100644 --- a/ts2panda/src/compiler.ts +++ b/ts2panda/src/compiler.ts @@ -33,6 +33,7 @@ import { setVariableExported } from "./base/util"; import { CacheList, getVregisterCache } from "./base/vregisterCache"; +import { CmdOptions } from "./cmdOptions"; import { CompilerDriver } from "./compilerDriver"; import { DebugInfo, NodeKind } from "./debuginfo"; import { DiagnosticCode, DiagnosticError } from "./diagnostic"; @@ -176,6 +177,9 @@ export class Compiler { } private callOpt() { + if (CmdOptions.isDebugMode()) { + return; + } let CallMap: Map = new Map([ ["this", 1], ["4newTarget", 2], diff --git a/ts2panda/ts2abc/ts2abc.cpp b/ts2panda/ts2abc/ts2abc.cpp index 6d5e7b14a7497f4edb2dff5b16972799ccc0d49e..b4c755933695603203b3be407d13f6bae5c3760d 100644 --- a/ts2panda/ts2abc/ts2abc.cpp +++ b/ts2panda/ts2abc/ts2abc.cpp @@ -612,6 +612,10 @@ static void ParseFunctionCatchTables(const Json::Value &function, panda::pandasm static void ParseFunctionCallType(const Json::Value &function, panda::pandasm::Function &pandaFunc) { + if (g_debugModeEnabled) { + return; + } + std::string funcName = ""; if (function.isMember("name") && function["name"].isString()) { funcName = function["name"].asString();