Skip to content

Commit 80b880b

Browse files
committed
jasmine: remove eval() call
We never use this code path, so remove it.
1 parent 114283a commit 80b880b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

t/lib/jasmine-2.9.1/jasmine.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2088,9 +2088,7 @@ getJasmineRequireObj().DelayedFunctionScheduler = function(j$) {
20882088
self.scheduleFunction = function(funcToCall, millis, params, recurring, timeoutKey, runAtMillis) {
20892089
var f;
20902090
if (typeof(funcToCall) === 'string') {
2091-
/* jshint evil: true */
2092-
f = function() { return eval(funcToCall); };
2093-
/* jshint evil: false */
2091+
throw new TypeError("Refusing to eval string as function")
20942092
} else {
20952093
f = funcToCall;
20962094
}

0 commit comments

Comments
 (0)