Results 1 to 3 of 3
  1. #1

    Exclamation Bad syntax in Lightstreamer 6.1.1 1640

    concerning this Version:

    * Lightstreamer JavaScript Client
    * Version 6.1.1 build 1640
    * Contains: Lightstreamer/LightstreamerClient, Lightstreamer/Subscription, Lightstreamer/DynaGrid, Lightstreamer/StaticGrid
    * Globals (namespaced)

    Line 41, Col. 9: "break a"
    Our ASP.NET MVC4.5 BundleMinifier says: "run-time error JS1019: Can't have 'break' outside of loop: break a".
    Obviously it won't recognize the label. Maybe it's possible to omit the label and put the following two statements in the try-block.

    Line 395, Col. 273: "break a"
    It's just a suggestion, but I think it have to be "return a".

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hi,

    The labeled break is not contained in our source code, as we prefer to avoid such statements in our sources, but is introduced by the closure compiler we use to minify the library.

    Do you have any chance to exclude our file from the BundleMinifier execution?

  3. #3
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Anyway, let me stress the fact that the syntax as is is correct, thus you might want to fill a bug report to microsoft.

    I took a look to their documentation and saw that the error is there too even if the documentation for the break keyword is correctly written:

    JS1019: http://msdn.microsoft.com/en-US/en-e...a9cax(v=vs.90)
    break (see the remarks section): http://msdn.microsoft.com/en-us/0bw81z75(v=vs.90)

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 09:18 PM.