diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2015-11-05 14:34:12 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2015-11-05 14:34:12 +0000 |
commit | cbdad5acbc8248fc4af14dcd885f648acabd2adc (patch) | |
tree | 531788720879bc276b583b0a672d1b3f0d673358 | |
parent | b931a482d7d152c53863d1f15413d6ce595d6c79 (diff) | |
download | lace-cbdad5acbc8248fc4af14dcd885f648acabd2adc.tar.gz |
Add some unpack holding so that Lua 5.3 worksv1.1
-rw-r--r-- | lib/lace/compiler.lua | 2 | ||||
-rw-r--r-- | lib/lace/engine.lua | 2 | ||||
-rw-r--r-- | test/test-lace.builtin.lua | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/lib/lace/compiler.lua b/lib/lace/compiler.lua index 57b432f..a3610c3 100644 --- a/lib/lace/compiler.lua +++ b/lib/lace/compiler.lua @@ -17,6 +17,8 @@ local lex = require "lace.lex" local builtin = require "lace.builtin" local err = require "lace.error" +local unpack = unpack or table.unpack + local function _fake_loader(ctx, name) return err.error("Ruleset not found: " .. name, {1}) end diff --git a/lib/lace/engine.lua b/lib/lace/engine.lua index 45c2c33..e80918d 100644 --- a/lib/lace/engine.lua +++ b/lib/lace/engine.lua @@ -15,6 +15,8 @@ local err = require 'lace.error' +local unpack = unpack or table.unpack + local function _dlace(ctx) local ret = ctx._lace or {} ctx._lace = ret diff --git a/test/test-lace.builtin.lua b/test/test-lace.builtin.lua index df5ebba..b2eafde 100644 --- a/test/test-lace.builtin.lua +++ b/test/test-lace.builtin.lua @@ -14,6 +14,8 @@ pcall(require, 'luacov') local builtin = require 'lace.builtin' local engine = require 'lace.engine' +local unpack = unpack or table.unpack + local testnames = {} local real_assert = assert |