minify: Return _M from modules that weren't lua5.2

Fri, 05 May 2017 09:44:05 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Fri, 05 May 2017 09:44:05 +0100
branch
lua5.2
changeset 93
07c10f9ba77c
parent 92
55e927a6c228
child 94
cf209451be5f

minify: Return _M from modules that weren't

minify/optlex.lua file | annotate | diff | comparison | revisions
minify/optparser.lua file | annotate | diff | comparison | revisions
--- a/minify/optlex.lua	Wed Feb 10 12:33:42 2016 +0000
+++ b/minify/optlex.lua	Fri May 05 09:44:05 2017 +0100
@@ -830,3 +830,5 @@
   if opt_details and opt_details > 0 then print() end -- spacing
   return stoks, sinfos, stoklns
 end
+
+return _M;
--- a/minify/optparser.lua	Wed Feb 10 12:33:42 2016 +0000
+++ b/minify/optparser.lua	Fri May 05 09:44:05 2017 +0100
@@ -440,3 +440,5 @@
   local afteruniq = preprocess(localinfo)
   ------------------------------------------------------------------
 end
+
+return _M;

mercurial