changeset 1340:b3c4fcf29a53

fix values() and minor Http_test
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 18 Feb 2019 05:11:50 -0700
parents f61df1aee8e1
children a015a0b5c388
files src/luan/modules/BasicLuan.java src/luan/modules/http/Http_test.luan
diffstat 2 files changed, 3 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
diff -r f61df1aee8e1 -r b3c4fcf29a53 src/luan/modules/BasicLuan.java
--- a/src/luan/modules/BasicLuan.java	Sun Feb 17 06:47:14 2019 -0700
+++ b/src/luan/modules/BasicLuan.java	Mon Feb 18 05:11:50 2019 -0700
@@ -170,7 +170,7 @@
 			this.args = args;
 		}
 
-		@Override public Object[] call(Object[] args) {
+		@Override public Object[] call(Object[] x) {
 			if( i >= args.length )
 				return LuanFunction.NOTHING;
 			Object val = args[i++];
diff -r f61df1aee8e1 -r b3c4fcf29a53 src/luan/modules/http/Http_test.luan
--- a/src/luan/modules/http/Http_test.luan	Sun Feb 17 06:47:14 2019 -0700
+++ b/src/luan/modules/http/Http_test.luan	Mon Feb 18 05:11:50 2019 -0700
@@ -22,14 +22,8 @@
 	local old_out = Io.stdout
 	try {
 		function()
-			local mod = Package.load("site:"..path..".luan")
-			if mod and true then
-				mod()
-			else
-				local not_found = Package.load("site:/not_found.luan")
-				not_found or error(path.." not found")
-				not_found()
-			end
+			local mod = Package.load("site:"..path..".luan") or error(path.." not found")
+			mod()
 			Http_test.text_writer.close()
 		end
 		finally = function()