console.log在类对象[流]之前打印“ a”

时间:2019-01-22 01:23:24

标签: javascript node.js babeljs minify console.log

Foo.js:

export class Foo {
  name: string;

  constructor(name: string) {
    this.name = name;
  }
}

在测试文件中,我做了一个简单的console.log(new Foo("test"));,它的输出是:a { name: 'test' }

我猜测a可能表示any类型(我确实安装了流程),但不确定。

使用:

  • 节点v10.15.0
  • 流箱^ 0.90.0
  • babel v6

0 个答案:

没有答案