Fix to work with modules which call module(...)

Sun, 26 Jul 2009 03:38:20 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sun, 26 Jul 2009 03:38:20 +0100
changeset 21
27c2e279f0f3
parent 20
1766b5a287e1
child 22
cb14d8c0d0f7

Fix to work with modules which call module(...)

squish.lua file | annotate | diff | comparison | revisions
--- a/squish.lua	Sun Jul 26 01:26:42 2009 +0100
+++ b/squish.lua	Sun Jul 26 03:38:20 2009 +0100
@@ -162,7 +162,7 @@
 		data, err = fetch.http(module.url:gsub("%?", module.path));
 	end
 	if data then
-		f:write("package.preload['", modulename, "'] = (function ()\n");
+		f:write("package.preload['", modulename, "'] = (function (...)\n");
 		f:write(data);
 		f:write("end)\n");
 		if enable_debug then

mercurial