Browse Source

AP_Scripting: Add setmetatable back to the lua sandbox

zr-v5.1
Michael du Breuil 4 years ago committed by Andrew Tridgell
parent
commit
1a1a5e69dd
  1. 2
      libraries/AP_Scripting/lua/src/lbaselib.c

2
libraries/AP_Scripting/lua/src/lbaselib.c

@ -474,7 +474,7 @@ static const luaL_Reg base_funcs[] = { @@ -474,7 +474,7 @@ static const luaL_Reg base_funcs[] = {
// {"rawget", luaB_rawget},
// {"rawset", luaB_rawset},
// {"select", luaB_select},
// {"setmetatable", luaB_setmetatable},
{"setmetatable", luaB_setmetatable},
{"tonumber", luaB_tonumber},
{"tostring", luaB_tostring},
{"type", luaB_type},

Loading…
Cancel
Save