webmcp

diff framework/env/execute/file_path.lua @ 232:82cc171e8510

Pass _ENV to loaded chunks
author jbe
date Sat Feb 28 23:11:40 2015 +0100 (2015-02-28)
parents 9fdfb27f8e67
children 4e69ce9a6365
line diff
     1.1 --- a/framework/env/execute/file_path.lua	Sat Feb 28 23:04:43 2015 +0100
     1.2 +++ b/framework/env/execute/file_path.lua	Sat Feb 28 23:11:40 2015 +0100
     1.3 @@ -14,7 +14,7 @@
     1.4    local file_path = args.file_path
     1.5    local id        = args.id
     1.6    local params    = args.params
     1.7 -  local func, load_errmsg = loadfile(file_path)
     1.8 +  local func, load_errmsg = loadfile(file_path, nil, _ENV)
     1.9    if not func then
    1.10      error('Could not load file "' .. file_path .. '": ' .. load_errmsg)
    1.11    end

Impressum / About Us