luciotato / LiteScript

Compile-to-js and compile-to-c language, highly readable, keep it simple philosophy
GNU Affero General Public License v3.0
147 stars 7 forks source link

Crashes when file path is undefined #7

Closed jescalan closed 10 years ago

jescalan commented 10 years ago

If you are compiling from a string, you don't always have a filepath. If you pass undefined as the file path to the javascript API, everything crashes. This should be handled gracefully.