mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
spec fixes for greater versions of lua
This commit is contained in:
parent
b129b00daf
commit
9e60662365
@ -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
|
||||
|
@ -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 ...
|
||||
|
||||
|
@ -1,4 +1,6 @@
|
||||
|
||||
import unpack from require "moonscript.util"
|
||||
|
||||
describe "comprehension", ->
|
||||
it "should double every number", ->
|
||||
input = {1,2,3,4,5,6}
|
||||
|
Loading…
Reference in New Issue
Block a user