File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -427,12 +427,12 @@ local PARSER_VERSION = "2.1.0-dev"
427427local NORMALIZE_MINUS_ZERO , HANDLE_ENV
428428do
429429 local n = 0
430- NORMALIZE_MINUS_ZERO = tostring (- n ) == " 0"
430+ NORMALIZE_MINUS_ZERO = tostring (- n ) == " 0" -- Lua 5.3+ normalizes -0 to 0.
431431end
432432do
433433 local pcall = pcall
434434 local _ENV = nil
435- HANDLE_ENV = not pcall (function () local x = _G end )
435+ HANDLE_ENV = not pcall (function () return _G end ) -- Looking up the global _G will raise an error if _ENV is supported (Lua 5.2+).
436436end
437437
438438local assert = assert
@@ -4797,10 +4797,10 @@ do
47974797end
47984798
47994799-- stats = minify( node [, optimize=false ] )
4800- local function minify (node , optimize )
4800+ local function minify (node , doOptimize )
48014801 local stats = Stats ()
48024802
4803- if optimize then
4803+ if doOptimize then
48044804 _optimize (node , stats )
48054805 end
48064806
You can’t perform that action at this time.
0 commit comments