Skip to content

Commit a924b5f

Browse files
committed
small bug fix?
1 parent 857f61d commit a924b5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/prometheus/compiler/expressions/boolean.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ local function createRandomASTCFlowExpression(resultBool)
2828
leftInt = Ast.NumberExpression(math.random(1, 2^24))
2929
rightInt = Ast.NumberExpression(math.random(1, 2^24))
3030
r3 = "return " .. leftInt.value .. expLookup[randomExp] .. rightInt.value
31-
boolResult = loadstring(r3)()
31+
boolResult = (loadstring or load)(r3)()
3232
until boolResult == resultBool
3333

3434
return randomExp(leftInt, rightInt, false)

0 commit comments

Comments
 (0)