gamesys / moonshine

A lightweight Lua VM for the browser
http://moonshinejs.org
MIT License
502 stars 35 forks source link

Don't use `undefined` #6

Closed daurnimator closed 10 years ago

daurnimator commented 10 years ago

Don't use undefined: some evil module could define it.

The proper equivalent is void 0

paulcuth commented 10 years ago

The moonshine.min.js file has this replacement as part of the minification process. As I generally refer to the built file as "development version" and the minified file as "production version", I'm happy to leave this as is. I believe that "undefined" is more readable and understandable to the human eye than "void 0".