Loading ...
Sorry, an error occurred while loading the content.

3048This eval is not evil

Expand Messages
  • Felix E. Klee
    Oct 12, 2012
      For the following code, JSLint returns "eval is evil.":

      /*jslint node: true */
      'use strict';
      var client = require('redis').createClient();
      client['eval']("return 100.5", 0, function (err, res) {
      console.dir(err);
      console.dir(res);
      });

      However, this "eval" has nothing to do with the evil function built into
      JavaScript.
    • Show all 10 messages in this topic