@ -80,7 +80,7 @@ export class MiaoScriptConsole implements Console {
|
||||
this.info(args)
|
||||
}
|
||||
i18n(name: string, param?: { [key: string]: any }) {
|
||||
this.log(i18m.translate(name, param))
|
||||
this.console(i18m.translate(name, param))
|
||||
}
|
||||
object(obj) {
|
||||
for (var i in obj) {
|
||||
@ -103,7 +103,7 @@ export class MiaoScriptConsole implements Console {
|
||||
}
|
||||
}
|
||||
if (this.sourceMaps[fileName]) {
|
||||
var sourceMapping = this.sourceMaps[fileName].getSource(lineNumber, 0);
|
||||
var sourceMapping = this.sourceMaps[fileName].getSource(lineNumber, lineNumber);
|
||||
if (sourceMapping) {
|
||||
if (lineNumber != sourceMapping.mapping.sourceLine) {
|
||||
fileName = fileName.replace(".js", ".ts");
|
||||
|
Reference in New Issue
Block a user