We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 857f61d commit a924b5fCopy full SHA for a924b5f
1 file changed
src/prometheus/compiler/expressions/boolean.lua
@@ -28,7 +28,7 @@ local function createRandomASTCFlowExpression(resultBool)
28
leftInt = Ast.NumberExpression(math.random(1, 2^24))
29
rightInt = Ast.NumberExpression(math.random(1, 2^24))
30
r3 = "return " .. leftInt.value .. expLookup[randomExp] .. rightInt.value
31
- boolResult = loadstring(r3)()
+ boolResult = (loadstring or load)(r3)()
32
until boolResult == resultBool
33
34
return randomExp(leftInt, rightInt, false)
0 commit comments