Skip to main content

Module execute_script

Module execute_script 

Source
Expand description

extern "C" const char* executeScript(const char* source) (CLI/src/Web.cpp:184-208).

The wasm entry point: enables every Luau* bool fast flag, spins up a fresh sandboxed Lua state, runs the script via run_code, and returns the result string (or null when empty). The C++ caches the result in a function-static std::string so the returned pointer outlives the call; the Rust analog is a thread-local CString whose pointer is returned.

Functions§

execute_script
Safety