bublejs / buble

https://buble.surge.sh
MIT License
871 stars 64 forks source link

Fix `handlers[node.type] is not a function` error in for...in loops. #232

Closed luiscubal closed 4 years ago

luiscubal commented 4 years ago

When for (a[0] in b) is found, buble threw an error. This commit fixes the error and adds a test.

mourner commented 4 years ago

Thank you! TIL this is a valid JS syntax.