Skip to content

Commit

Permalink
Merge branch 'master' of github.com:luvit/luvit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Phillips committed Aug 29, 2012
2 parents cc715a4 + 97e52a0 commit c810e71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/luvit/utils.lua
Expand Up @@ -53,7 +53,7 @@ function utils.color(color_name)
end
function utils.colorize(color_name, string, reset_name)
return utils.color(color_name) .. string .. utils.color(reset_name)
return utils.color(color_name) .. tostring(string) .. utils.color(reset_name)
end
local backslash, null, newline, carriage, tab, quote, quote2, obracket, cbracket
Expand Down
4 changes: 4 additions & 0 deletions tests/test-utils.lua
Expand Up @@ -91,3 +91,7 @@ bound('!', function(arg1, arg2, arg3)
assert(arg2 == 'world')
assert(arg3 == '!')
end)

local Error = require('core').Error
local MyError = Error:extend()
assert(pcall(utils.dump, MyError))

0 comments on commit c810e71

Please sign in to comment.