Skip to content

Commit dfb4e9a

Browse files
committed
Fix LuaJIT stack inspection tests
1 parent 92db0f6 commit dfb4e9a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/tests.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,12 @@ fn test_inspect_stack() -> Result<()> {
13241324
local function baz()
13251325
return running_function()
13261326
end
1327-
assert(baz() == baz)
1327+
if jit == nil then
1328+
assert(baz() == baz)
1329+
else
1330+
-- luajit inline the "baz" function and returns the chunk itself
1331+
assert(baz() == running_function())
1332+
end
13281333
"#,
13291334
)
13301335
.exec()?;

0 commit comments

Comments
 (0)