bublejs / buble

https://buble.surge.sh
MIT License
869 stars 67 forks source link

Array check failed on Array subclasses #205

Open ClassicOldSong opened 5 years ago

ClassicOldSong commented 5 years ago
const MyArr = class extends Array {}
const foo = new MyArr()
Array.isArray(foo) // should be true

but with buble it actually shows false, while babel does this right: link.

TypeScript also does this right: link

Should this be fixed as a bug?