def get_main_sandboxed(lua, script):
    env = run_in_sandbox(lua, script)
    main = env[b"main"]
    _check_main(main)
    return main, env
Get "main" function and its (sandboxed) global environment
dataset/ETHPy150Open scrapinghub/splash/splash/lua.py/get_main_sandboxed