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

3052Re: This eval is not evil

Expand Messages
  • douglascrockford
    Oct 18, 2012
      --- In jslint_com@yahoogroups.com, "Felix E. Klee" <felix.klee@...> wrote:

      > 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.


      /*jslint evil: true */
    • Show all 10 messages in this topic