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

2002/*jslint is seen as a reserved word

Expand Messages
  • Woomla
    Mar 4, 2011
    • 0 Attachment
      Hi,

      This code gives a message: Problem at line 5 character 9: Expected an identifier and instead saw '/*jslint' (a reserved word). That's correct and it's my intention to allow bitwise operator &.


      (function () {
      "use strict";

      String.implement({
      /*jslint bitwise: false*/
      getByteAt: function (index) {
      return this.charCodeAt(index) & 0xFF;
      }
      });
      }());

      If I move the /*jslint before String.implement, it is ok. But I guess it should be fine on the line in this example as well, shouldn't it?
    • Show all 8 messages in this topic