add missing functions to default whitelist, sort it

This commit is contained in:
leaf corcoran 2013-12-27 15:57:01 -08:00
parent 49b1c6e8a3
commit ca4427cf6d
2 changed files with 72 additions and 68 deletions

View File

@ -14,43 +14,45 @@ do
Block = _obj_0.Block
end
local default_whitelist = Set({
'loadstring',
'select',
'_VERSION',
'pcall',
'package',
'error',
'rawget',
'pairs',
'xpcall',
'rawlen',
'io',
'loadfile',
'ipairs',
'table',
'require',
'os',
'module',
'debug',
'type',
'getmetatable',
'rawequal',
'dofile',
'unpack',
'math',
'load',
'bit32',
'string',
'rawset',
'tostring',
'print',
'assert',
'_G',
'next',
'setmetatable',
'tonumber',
'_VERSION',
'assert',
'bit32',
'collectgarbage',
'coroutine',
'debug',
'dofile',
'error',
'getfenv',
'getmetatable',
'io',
'ipairs',
'load',
'loadfile',
'loadstring',
'math',
'module',
'next',
'os',
'package',
'pairs',
'pcall',
'print',
'rawequal',
'rawget',
'rawlen',
'rawset',
'require',
'select',
'setfenv',
'setmetatable',
'string',
'table',
'tonumber',
'tostring',
'type',
'unpack',
'xpcall',
"nil",
"true",
"false"

View File

@ -5,43 +5,45 @@ import Block from require "moonscript.compile"
-- globals allowed to be referenced
default_whitelist = Set {
'loadstring'
'select'
'_VERSION'
'pcall'
'package'
'error'
'rawget'
'pairs'
'xpcall'
'rawlen'
'io'
'loadfile'
'ipairs'
'table'
'require'
'os'
'module'
'debug'
'type'
'getmetatable'
'rawequal'
'dofile'
'unpack'
'math'
'load'
'bit32'
'string'
'rawset'
'tostring'
'print'
'assert'
'_G'
'next'
'setmetatable'
'tonumber'
'_VERSION'
'assert'
'bit32'
'collectgarbage'
'coroutine'
'debug'
'dofile'
'error'
'getfenv'
'getmetatable'
'io'
'ipairs'
'load'
'loadfile'
'loadstring'
'math'
'module'
'next'
'os'
'package'
'pairs'
'pcall'
'print'
'rawequal'
'rawget'
'rawlen'
'rawset'
'require'
'select'
'setfenv'
'setmetatable'
'string'
'table'
'tonumber'
'tostring'
'type'
'unpack'
'xpcall'
"nil"
"true"