feat: support full nodejs event loop

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2020-11-20 10:28:30 +08:00
parent 4bb2337f39
commit f31726e98b
3 changed files with 103 additions and 45 deletions

View File

@ -158,9 +158,11 @@ export class MiaoScriptConsole implements Console {
var { fileName, lineNumber } = this.readSourceMap(trace.fileName, trace.lineNumber)
if (fileName.startsWith(root)) { fileName = fileName.split(root)[1] }
} else {
for (let prefix in ignoreLogPrefix) {
if (className.startsWith(ignoreLogPrefix[prefix])) {
return
if (!global.debug) {
for (let prefix in ignoreLogPrefix) {
if (className.startsWith(ignoreLogPrefix[prefix])) {
return
}
}
}
}