spec fixes for greater versions of lua

This commit is contained in:
leaf corcoran 2015-12-06 18:06:06 -08:00
parent b129b00daf
commit 9e60662365
3 changed files with 9 additions and 6 deletions

View File

@ -1,10 +1,13 @@
local util = require("moonscript.util")
local lua = {
debug = debug,
type = type
}
local dump, p, is_object, type, debug, run_with_scope, bind_methods, defaultbl, extend, copy, mixin, mixin_object, mixin_table, fold
dump = util.dump
local getfenv, setfenv, dump
do
local _obj_0 = require("moonscript.util")
getfenv, setfenv, dump = _obj_0.getfenv, _obj_0.setfenv, _obj_0.dump
end
local p, is_object, type, debug, run_with_scope, bind_methods, defaultbl, extend, copy, mixin, mixin_object, mixin_table, fold
p = function(...)
return print(dump(...))
end

View File

@ -1,11 +1,9 @@
util = require "moonscript.util"
lua = { :debug, :type }
import getfenv, setfenv, dump from require "moonscript.util"
local *
dump = util.dump
p = (...) ->
print dump ...

View File

@ -1,4 +1,6 @@
import unpack from require "moonscript.util"
describe "comprehension", ->
it "should double every number", ->
input = {1,2,3,4,5,6}