mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
use eval() instead of send() in test
This commit is contained in:
@@ -22,7 +22,7 @@ class Foobar
|
||||
end
|
||||
|
||||
def named_code(code)
|
||||
foo.send("def \n #{code} \n end") # OK - parameter is named code
|
||||
eval("def \n #{code} \n end") # OK - parameter is named code
|
||||
end
|
||||
|
||||
def joinStuff(my_arr)
|
||||
|
||||
Reference in New Issue
Block a user