Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 4th, 2012  |  syntax: None  |  size: 2.36 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Code contained some property named "public" which is a reserved keyword.
  2. # YUI Compressor failed to report any error when ran by Jammit as opposed to Closure Compiler which gave the following :  
  3.  
  4. stdin:34: ERROR - Parse error. invalid property id
  5.           public: false
  6.                  ^
  7.  
  8. stdin:34: ERROR - Parse error. syntax error
  9.           public: false
  10.                   ^
  11.  
  12. stdin:35: ERROR - Parse error. syntax error
  13.         });
  14.           ^
  15.  
  16. stdin:89: ERROR - Parse error. missing formal parameter
  17.     setPublic: function(public) {
  18.                                ^
  19.  
  20. stdin:90: ERROR - Parse error. syntax error
  21.       this.set({
  22.             ^
  23.  
  24. stdin:91: ERROR - Parse error. syntax error
  25.         public: public
  26.                 ^
  27.  
  28. stdin:92: ERROR - Parse error. syntax error
  29.       });
  30.         ^
  31.  
  32. stdin:95: ERROR - Parse error. missing ) in parenthetical
  33.     getPublic: function() {
  34.                ^
  35.  
  36. stdin:97: ERROR - Parse error. syntax error
  37.     },
  38.      ^
  39.  
  40. stdin:98: ERROR - Parse error. syntax error
  41.     set: function(attributes, options) {
  42.          ^
  43.  
  44. stdin:99: ERROR - Parse error. missing ; before statement
  45.       if (attributes && attributes['_id']) {
  46.  
  47. stdin:102: ERROR - Parse error. syntax error
  48.       }
  49.  
  50. stdin:103: ERROR - Parse error. missing ; before statement
  51.       if (attributes && attributes['location']) {
  52.  
  53. stdin:104: ERROR - Parse error. syntax error
  54.         this.guessType();
  55.               ^
  56.  
  57. stdin:105: ERROR - Parse error. syntax error
  58.       }
  59.  
  60. stdin:107: ERROR - Parse error. syntax error
  61.     }
  62.  
  63. stdin:108: ERROR - Parse error. syntax error
  64.   });
  65.     ^
  66.  
  67. stdin:109: ERROR - Parse error. syntax error
  68. }).call(this);
  69.  ^
  70.  
  71. stdin:277: ERROR - Parse error. missing name after . operator
  72.       this.public = this.$('.link-public-button');
  73.                   ^
  74.  
  75. stdin:280: ERROR - Parse error. missing name after . operator
  76.         this.public.css({
  77.                     ^
  78.  
  79. stdin:281: ERROR - Parse error. syntax error
  80.           color: 'green'
  81.                  ^
  82.  
  83. stdin:282: ERROR - Parse error. syntax error
  84.         });
  85.           ^
  86.  
  87. stdin:285: ERROR - Parse error. missing name after . operator
  88.         this.public.css({
  89.                     ^
  90.  
  91. stdin:286: ERROR - Parse error. syntax error
  92.           color: 'black'
  93.                  ^
  94.  
  95. stdin:287: ERROR - Parse error. syntax error
  96.         });
  97.           ^