diff options
author | Degranon <boba00099@gmail.com> | 2025-05-23 20:38:14 +0200 |
---|---|---|
committer | Degranon <boba00099@gmail.com> | 2025-05-23 20:38:14 +0200 |
commit | d4bc678d671b5f1f942855e1e92dc591537d772c (patch) | |
tree | b8fef39322e342b95a2c654d136a928323913cbd /source/core/StarLua.cpp | |
parent | 46737f14ab68bbb0afeb6901cfadbf2475509621 (diff) |
Allow os.date
Diffstat (limited to 'source/core/StarLua.cpp')
-rw-r--r-- | source/core/StarLua.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/StarLua.cpp b/source/core/StarLua.cpp index 201f238..b70fe59 100644 --- a/source/core/StarLua.cpp +++ b/source/core/StarLua.cpp @@ -319,7 +319,7 @@ LuaEnginePtr LuaEngine::create(bool safe) { luaL_requiref(self->m_state, "os", luaopen_os, true); if (safe) { - StringSet osWhitelist = {"clock", "difftime", "time"}; + StringSet osWhitelist = {"clock", "difftime", "time", "date"}; lua_pushnil(self->m_state); while (lua_next(self->m_state, -2) != 0) { |