mmckegg / notevil

Evalulate javascript like the built-in javascript eval() method but safely.
195 stars 24 forks source link

[Feature Request] Support specify the maxIterations of InfiniteChecker #29

Open adoyle-h opened 7 years ago

adoyle-h commented 7 years ago

Let user set maxIterations of InfiniteChecker.

var result = safeEval('function loop() {while(1) {}}', {
  maxIterations: 1000000
});