mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-30 00:34:56 +00:00
code: script,nextjs,lua (1 files)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { executeLuaScriptWithProfile } from '../../lua/execute-lua-script-with-profile'
|
||||
import type { DeclarativeRendererState } from './renderer-state'
|
||||
|
||||
export async function executeLuaScript(
|
||||
@@ -34,9 +35,11 @@ if result_fn and type(result_fn) == "function" then
|
||||
end
|
||||
`
|
||||
|
||||
const result = await state.luaEngine.execute(wrappedCode, {
|
||||
data: { params: paramContext }
|
||||
})
|
||||
const result = await executeLuaScriptWithProfile(
|
||||
wrappedCode,
|
||||
{ data: { params: paramContext } },
|
||||
script
|
||||
)
|
||||
|
||||
if (!result.success) {
|
||||
console.error(`Lua script error (${scriptId}):`, result.error, result.logs)
|
||||
|
||||
Reference in New Issue
Block a user