lunarmodules / Penlight

A set of pure Lua libraries focusing on input data handling (such as reading configuration files), functional programming (such as map, reduce, placeholder expressions,etc), and OS path management. Much of the functionality is inspired by the Python standard libraries.
https://lunarmodules.github.io/Penlight/
MIT License
1.9k stars 238 forks source link

Update class.lua #486

Open jlaurens opened 1 month ago

jlaurens commented 1 month ago

According to the documentation, compat.getfenv may return nil such that env may be nil.