luci-base: runtime.uc: avoid Lua not installed exeption from trycompile()
authorJo-Philipp Wich <[email protected]>
Wed, 2 Nov 2022 09:17:48 +0000 (10:17 +0100)
committerJo-Philipp Wich <[email protected]>
Wed, 2 Nov 2022 09:21:05 +0000 (10:21 +0100)
commit815028ef93480d58f93a1b76289c77fd34714bdc
tree70541f975fda68bd87d58bd98f217a7bf486cbcb
parentc99602e4ac72f4f6410449dd7175d52b974de9cc
luci-base: runtime.uc: avoid Lua not installed exeption from trycompile()

Make sure to request loading the Lua bridge as optional when initializing
the Lua VM context from trycompile() in order to not raise a fatal exception
in case the Lua runtime support is not present.

Ref: https://forum.openwrt.org/t/x/141426
Signed-off-by: Jo-Philipp Wich <[email protected]>
modules/luci-base/ucode/runtime.uc