foxbenjaminfox / babel-plugin-overload

A highly experimental babel plugin for operator overloading in javascript
Apache License 2.0
46 stars 6 forks source link

Cannot read property 'Symbol(===)' of null #1

Closed HmHmmHm closed 7 years ago

HmHmmHm commented 7 years ago

/ ERROR CASE 1 / let a = null console.log(a === null) //Cannot read property 'Symbol(===)' of null

/ ERROR CASE 2 / let b = undefined console.log(b === undefined) //Cannot read property 'Symbol(===)' of undefined

Simply way out this problem, I can using the typeof function. but It seems necessary to improve.