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

RE: [ydn-javascript] YUI Compressor 2.2.3 Javascript JSON minifying: "delete" > delete

Expand Messages
  • Julien Lecomte
    Hi, This has already been fixed in version 2.3.1 of the compressor. No need to file it. Regards, Julien From: ydn-javascript@yahoogroups.com
    Message 1 of 3 , Jan 31, 2008
    • 0 Attachment

      Hi,

       

      This has already been fixed in version 2.3.1 of the compressor. No need to file it.

       

      Regards,

      Julien

       

       

      From: ydn-javascript@yahoogroups.com [mailto:ydn-javascript@yahoogroups.com] On Behalf Of Jurriaan Persyn
      Sent: Thursday, January 31, 2008 7:43 AM
      To: ydn-javascript@yahoogroups.com
      Subject: [ydn-javascript] YUI Compressor 2.2.3 Javascript JSON minifying: "delete" > delete

       

      Hey,

      I'm new to this group, so I hope this is the right place to report a
      little problem we had with YUI Compressor, 2.3.

      A javascript file that had a javascript object similar to this:

      {"delete":"bla"}

      was minified to

      {delete:"bla"}

      This resulted in parse errors for that file in (at least) Safari; I
      guess because 'delete' is a reserved keyword in Javascript.

      The problem was solved by renaming the delete key to something else,
      but maybe YUI Compressor shouldn't drop the quotes for keys that are
      keywords in the Javascript language?

      Thanks

      Peace,
      Jurriaan

    Your message has been successfully submitted and would be delivered to recipients shortly.