From 63a19db0dc817d2929d8ef4bf12a15d5e9dbd015 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 12 Jun 2018 20:06:33 -0700 Subject: Working version. --- nomsu_tree.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nomsu_tree.lua') diff --git a/nomsu_tree.lua b/nomsu_tree.lua index 96e5031..446da20 100644 --- a/nomsu_tree.lua +++ b/nomsu_tree.lua @@ -62,6 +62,9 @@ Tree = function(name, methods) if type(source) == 'string' then source = Source:from_string(source) end + for i = 1, select('#', ...) do + assert(select(i, ...)) + end assert(Source:is_instance(source)) local inst = { source = source, -- cgit v1.2.3