Reflection Functions

Loadstring

<union<function, nil>, <string?>> loadstring(<string> chunk, <string?> chunk_name)  

Loads chunk as a Lua function with optional chunk_name and returns it if compilation is successful. Otherwise, if an error has occurred during compilation, nil followed by the error message will be returned.

Last updated