function Person() {
this.name = 'mao'
}
const p = new Person()
Person.prototype[Symbol.toStringTag] = 'Person'
console.log(Object.prototype.toString.call(p))
const b = new Person()
console.log(Object.prototype.toString.call(b))
const aka = new Promise(() => {})
Object.defineProperty(Promise.prototype, Symbol.toStringTag, {
value: 'akaKUKU'
})
console.log(Object.prototype.toString.call(aka))
const bkb = new Promise(() => {})
Object.defineProperty(bkb, Symbol.toStringTag, {
value: 'MMP'
})
console.log(Object.prototype.toString.call(bkb))
const ddd = new Promise(() => {})
console.log(Object.prototype.toString.call(ddd))