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

Re: confustion = confusion

Expand Messages
  • Merlin
    ... I guess that you have set confusion: true in the (web) interface or elsewhere. Try this: /*jslint confusion: false */ var w = 27 + 43 ; // gives an error
    Message 1 of 3 , Jun 23, 2011
    View Source
    • 0 Attachment
      --- In jslint_com@yahoogroups.com, jamrsim@... wrote:
      > I have discovered that both:
      > confustion: true
      > -or-
      > confusion: true
      >
      > will both satisfy JSLint to achieve 'Tolerate type confusion'

      I guess that you have set confusion: true in the (web) interface or elsewhere.

      Try this:

      /*jslint confusion: false */
      var w = 27 + "43"; // gives an error
      /*jslint confustion: true */
      var x = 27 + "43"; // still gives an error
      /*jslint confusion: true */
      var y = 27 + "43"; // no error
      /*jslint confustion: false */
      var z = 27 + "43"; // still no error

      So "confustion" has no effect.
    Your message has been successfully submitted and would be delivered to recipients shortly.