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

problems with Nesting

Expand Messages
  • abyssoft@ymail.com
    given the following snippet where » are tabs (4 space) and ---------- are begin and end markers. (the blank line after the start marker is intentional) ...
    Message 1 of 1 , Nov 21, 2010
    • 0 Attachment
      given the following snippet where » are tabs (4 space) and ---------- are begin and end markers. (the blank line after the start marker is intentional)

      ----------

      "use strict";
      //Library (Netsuite Objects)
      /*global NlobjAssistant, NlobjAssistantStep, NlobjButton, NlobjColumn, NlobjConfiguration, NlobjContext, NlobjError, NlobjField, NlobjFieldGroup, NlobjFile, NlobjForm, NlobjList, NlobjPortlet, NlobjRecord, NlobjRecord, NlobjRequest, NlobjResponse, NlobjSearchColumn, NlobjSearchFilter, NlobjSearchResult, NlobjSelectOption, NlobjSubList, NlobjTab
      */
      //Library (Netsuite API)
      /*global nlapiSearchRecord
      */
      //Library (IS_library_V2_00)
      /*global Global
      */
      var searchResults = nlapiSearchRecord(
      »'customrecord_is_module_codes',
      »null,
      »[
      »»new NlobjSearchFilter(
      »»»'internalid',
      »»»null,
      »»»"noneof",
      »»»[
      »»»»29,
      »»»»31,
      »»»»32,
      »»»»33
      »»»]
      »»)
      »]
      );
      ----------

      JSLint responds with a rather unexpected error

      Problem at line 27 character 5: Expected ']' to have an indentation at 9 instead at 5.

      Any insight as to whether this is a bug, or am I missing something?
    Your message has been successfully submitted and would be delivered to recipients shortly.