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

problem with 'with'

Expand Messages
  • Jérôme DESPATIS
    Here is a little script where JSLint throws an error, it s valid js for me: Problem at line 4 character 5: Expected an identifier and instead saw with . with
    Message 1 of 4 , Jul 15, 2011
    • 0 Attachment
      Here is a little script where JSLint throws an error, it's valid js for me:

      Problem at line 4 character 5: Expected an identifier and instead saw
      'with'.

      with (inRow) {



      function test(inRow) {
      "use strict";

      with (inRow) {
      }
      }
    • fdg001@gmx.net
      ... Strict mode eliminates `with`: http://www.yuiblog.com/blog/2010/12/14/strict-mode-is-coming-to-town/ -- F.
      Message 2 of 4 , Jul 15, 2011
      • 0 Attachment
        > Expected an identifier and instead saw 'with'.

        Strict mode eliminates `with`:
        http://www.yuiblog.com/blog/2010/12/14/strict-mode-is-coming-to-town/


        -- F.
      • Jérôme DESPATIS
        Ok thanks, I change my code ... -- Jérôme Despatis jerome@despatis.com [Non-text portions of this message have been removed]
        Message 3 of 4 , Jul 15, 2011
        • 0 Attachment
          Ok thanks, I change my code

          Le 15/07/2011 10:43, fdg001@... a écrit :
          >
          > > Expected an identifier and instead saw 'with'.
          >
          > Strict mode eliminates `with`:
          > http://www.yuiblog.com/blog/2010/12/14/strict-mode-is-coming-to-town/
          >
          > -- F.
          >
          >


          --
          Jérôme Despatis
          jerome@...



          [Non-text portions of this message have been removed]
        • Douglas Crockford
          ... You can read the instructions: http://www.jslint.com/lint.html#with
          Message 4 of 4 , Jul 15, 2011
          • 0 Attachment
            --- In jslint_com@yahoogroups.com, Jérôme DESPATIS <jerome@...> wrote:
            >
            > Here is a little script where JSLint throws an error, it's valid js for me:
            >
            > Problem at line 4 character 5: Expected an identifier and instead saw
            > 'with'.
            >
            > with (inRow) {


            You can read the instructions: http://www.jslint.com/lint.html#with
          Your message has been successfully submitted and would be delivered to recipients shortly.