luvit / lit

Toolkit for developing, sharing, and running luvit/lua programs and libraries.
http://lit.luvit.io/
Apache License 2.0
245 stars 58 forks source link

Update core.lua #245

Closed tbmale closed 5 years ago

tbmale commented 5 years ago

Hi,

The latest core generate an error when make-ing [string "bundle:libs/core.lua"]:383: attempt to index field 'luvi' (a nil value)

This will just walk around the error (until someone smarter will truly find it).

squeek502 commented 5 years ago

To add a bit more detail:

It seems like this error will happen when the target package does not have a luvi key in its package.lua/lit metadata. See the luvi key in lit's package.lua.

This PR seems like a good enough fix for that error, as luvi_source takes precedence anyway. The alternative would be enforce the luvi key existing and give a better error message.