We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ed6fe3 commit 57efc14Copy full SHA for 57efc14
test/util.ts
@@ -252,7 +252,9 @@ export abstract class TestBuilder {
252
throw new Error(`Unsupported Lua return type: ${returnType}`);
253
}
254
} else {
255
- const message = to_jsstring(lua.lua_tostring(L, -1)).replace(/^\[string "--\.\.\."\]:\d+: /, "");
+ // Filter out control characters appearing on some systems
256
+ const luaStackString = lua.lua_tostring(L, -1).filter(c => c >= 20);
257
+ const message = to_jsstring(luaStackString).replace(/^\[string "--\.\.\."\]:\d+: /, "");
258
return new ExecutionError(message);
259
260
0 commit comments