Skip to content

Commit

Permalink
jasmine: remove eval() call
Browse files Browse the repository at this point in the history
We never use this code path, so remove it.
  • Loading branch information
cxw42 committed Mar 7, 2025
1 parent 114283a commit 80b880b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions t/lib/jasmine-2.9.1/jasmine.js
Original file line number Diff line number Diff line change
Expand Up @@ -2088,9 +2088,7 @@ getJasmineRequireObj().DelayedFunctionScheduler = function(j$) {
self.scheduleFunction = function(funcToCall, millis, params, recurring, timeoutKey, runAtMillis) {
var f;
if (typeof(funcToCall) === 'string') {
/* jshint evil: true */
f = function() { return eval(funcToCall); };
/* jshint evil: false */
throw new TypeError("Refusing to eval string as function")
} else {
f = funcToCall;
}
Expand Down

0 comments on commit 80b880b

Please sign in to comment.