Skip to content

Commit 95f7b92

Browse files
authored
load'' doesn't work in 5.1 so replace with function() end
1 parent 8f9299a commit 95f7b92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mach.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function mach.match(value, matcher)
105105
end
106106

107107
function mach.ignore_mocked_calls_when(thunk)
108-
subscriber = load''
108+
subscriber = function() end
109109
thunk()
110110
subscriber = unexpected_call
111111
end

0 commit comments

Comments
 (0)