From 3edd74158bf7ad051b995a0e9d5dca8e46980f2c Mon Sep 17 00:00:00 2001 From: "saarsena@gmail.com" Date: Fri, 24 Apr 2026 22:59:20 -0400 Subject: [PATCH] adsf --- .gitignore | 1 + .sconsign.dblite | Bin 2211922 -> 2211922 bytes demo/test_runtime.gd | 2 +- src/onebit_lua_runtime.cpp | 2 +- src/onebit_lua_runtime.os | Bin 127336 -> 127336 bytes 5 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index bdf4baa..2485169 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,7 @@ godot-cpp/gen/ # Editor/OS noise .vscode/ .idea/ +*.code-workspace .DS_Store Thumbs.db diff --git a/.sconsign.dblite b/.sconsign.dblite index 9cd0717d108946b36eca06fd7211f5c6f1b66ebc..4f4a346a21f1597c60e51498544c5cd646220bee 100644 GIT binary patch delta 327 zcmaiuJ5Iwu7=&>Mknnyb0RotSpn*jHvd-ET4YeaGN@%?6UD-t>q$CYhkVZXjdkP(q@jBE?-ut<|2VPqOta#nt? U8qjHdCa!e~1NrN{Ryt^X18b&dW&i*H delta 327 zcmaiuy-LGS9K~&|+WP&~R;?PVC;_3|+$Q%XIOtq)a@6G}_aBm>Af#QKDjew2F?$Ce zK_NpC-=Tv~;R84tadL7v2hM@R`ArAI!Zg6|7)601 zwy=#VYN%reyVyem`#8Yis}Zpa$FppU91=vbO(M{i(lU^exnUqYm!+dhFYZ#(Q{9KO z^J0F+qf!z-QhIZlJu~Cuy!_KeCwY9jH@-?|z7BoKxh8T+aiMH&5ow=mVYj6aERBvk z6LUCLMy{i5teUuE|Bn7pOw8=|t@&QOvH~6i%u_rh$CbWtJyMeUIlge2k~)p5`B#ot U>#) bool: if result.ok: push_error("expected runtime error, got success: " + str(result)) return false - if not str(result.error).contains(expected_error) or not str(result.error).contains("[string \"\"]"): + if not str(result.error).contains(expected_error) or not str(result.error).contains("stack traceback"): push_error("unexpected runtime error: " + str(result.error)) return false return true diff --git a/src/onebit_lua_runtime.cpp b/src/onebit_lua_runtime.cpp index 3617670..2be3e05 100644 --- a/src/onebit_lua_runtime.cpp +++ b/src/onebit_lua_runtime.cpp @@ -314,7 +314,7 @@ Dictionary OneBitLuaRuntime::call_event(const String &event_name, const Dictiona int error_handler = function_index; lua_sethook(lua, &OneBitLuaRuntime::_instruction_hook, LUA_MASKCOUNT, int(instruction_budget)); - int status = lua_pcall(lua, 2 + int(args.size()), 0, 0); + int status = lua_pcall(lua, 2 + int(args.size()), 0, error_handler); lua_sethook(lua, nullptr, 0, 0); if (status != LUA_OK) { diff --git a/src/onebit_lua_runtime.os b/src/onebit_lua_runtime.os index 3ae42f1b8e04ac0660e9d80302d1b8313f0d2940..ffe8141e38b775d452f29ba4eb0f2dbd16fc03ad 100644 GIT binary patch delta 22 ecmaFyi2cPQ_6?kl%$GWEHuE@c=W%3=*#H22*9o-% delta 22 ecmaFyi2cPQ_6?kl%qI;mHS;)b=W%3=*#H1}T?tJ9