sri96 / nila

Nila is a small Ruby inspired language to fix Javascript
https://github.com/sri96/nila
1 stars 0 forks source link

False Positive in Existential Operator #20

Closed adhithyan15 closed 10 years ago

adhithyan15 commented 10 years ago

Here is a snippet of code that triggers the existential operator parsing and crashes the compiler.

fileExists = fs.exists or path.exists
fileExistsSync = fs.existsSync or path.existsSync

It produces the following error message

C:/Users/someuser/Documents/GitHub/nila/lib/nilac/compile_existential_operator.rb:51
:in `+': no implicit conversion of nil into String (TypeError)

From the above message it is apparent that parser for existential operator has been triggered even though there is no existential operator in the above code. So please fix this bug.

adhithyan15 commented 10 years ago

The false case bug has been fixed. The upcoming 0.0.4.3.9.8.1 release will include the bug fix. The reported code is now part of the test suite.