How to ignore IE errors ?

368 views
Skip to first unread message

Tenumm

unread,
Feb 2, 2011, 3:02:29 PM2/2/11
to Closure Compiler Discuss

Hello All,

I was wondering if its possible to ignore checks for IE. For example I
am getting following error

index.js:829: ERROR - Parse error. Internet Explorer has a non-
standard intepretation of trailing commas. Arrays will have the wrong
length and objects will not parse at all.
]

1 error(s), 0 warning(s)

I was wondering if there is way to ignore checks for IE.

John Lenz

unread,
Feb 2, 2011, 3:43:34 PM2/2/11
to closure-comp...@googlegroups.com
You would have to modify the compiler source.

John Lenz

unread,
Feb 21, 2011, 11:13:31 PM2/21/11
to closure-comp...@googlegroups.com

A diagnostic group was recently added to control this.

sent from a mobile phone excuse the spelling ...

Nick Santos

unread,
Feb 22, 2011, 9:21:05 AM2/22/11
to closure-comp...@googlegroups.com, John Lenz
or, more precisely, it's
--jscomp_off=internetExplorerChecks

Dan

unread,
Feb 24, 2011, 6:22:44 PM2/24/11
to Closure Compiler Discuss
I tried the option and got the following:
java.lang.NullPointerException: No warning class for name:
internetExplorerChecks
at
com.google.common.base.Preconditions.checkNotNull(Preconditions.java:
204)
at
com.google.javascript.jscomp.DiagnosticGroups.setWarningLevels(Unknown
Source)
at
com.google.javascript.jscomp.AbstractCommandLineRunner.setRunOptions(Unknown
Source)
at
com.google.javascript.jscomp.AbstractCommandLineRunner.doRun(Unknown
Source)
at
com.google.javascript.jscomp.AbstractCommandLineRunner.run(Unknown
Source)
at com.google.javascript.jscomp.CommandLineRunner.main(Unknown
Source)


On Feb 22, 2:21 pm, Nick Santos <nicksan...@google.com> wrote:
> or, more precisely, it's
> --jscomp_off=internetExplorerChecks
>
> On Mon, Feb 21, 2011 at 11:13 PM, John Lenz <concavel...@gmail.com> wrote:
> > A diagnostic group was recently added to control this.
>
> > sent from a mobile phone excuse the spelling ...
>
> > On Feb 2, 2011 12:43 PM, "John Lenz" <concavel...@gmail.com> wrote:
> >> You would have to modify the compiler source.
>

Nick Santos

unread,
Feb 24, 2011, 7:15:19 PM2/24/11
to closure-comp...@googlegroups.com
what version of the compiler are you using?

Dan

unread,
Feb 24, 2011, 7:22:29 PM2/24/11
to closure-comp...@googlegroups.com
The compiler-latest.zip downloaded today!

John Lenz

unread,
Feb 24, 2011, 7:30:16 PM2/24/11
to closure-comp...@googlegroups.com
I don't believe it is in a release zip yet, it is available from the top-of-tree.  You shouldn't get a null pointer exception, we should look into that.

On Thu, Feb 24, 2011 at 4:22 PM, Dan <par...@gmail.com> wrote:
The compiler-latest.zip downloaded today!

Nick Santos

unread,
Feb 24, 2011, 7:30:24 PM2/24/11
to closure-comp...@googlegroups.com, Dan
notice that the zip file is dated January 19 and John's email was
dated February 21 :)

On Thu, Feb 24, 2011 at 7:22 PM, Dan <par...@gmail.com> wrote:
> The compiler-latest.zip downloaded today!
>

Dan

unread,
Feb 24, 2011, 7:38:32 PM2/24/11
to closure-comp...@googlegroups.com, Dan
Ah yes, that would do it. I stumbled across this thread when trying to solve my issues with the IE related errors (don't care about IE for the application we're developing) and didn't realise that the "internetExplorerChecks" option was so cutting edge. I will just have to wait for a new build or attempt to build it myself!

Thanks,
Dan

John Lenz

unread,
Feb 24, 2011, 8:45:58 PM2/24/11
to closure-comp...@googlegroups.com
Luckily most of these checks will go away in EcmaScript5 mode as the committee formalized on the FireFox/Chrome behavior and IE9 matches it.

Jay Young

unread,
Feb 24, 2011, 10:18:12 PM2/24/11
to closure-comp...@googlegroups.com
Now we just have to watch and wait as XP dies a painful, drawn-out death.

John Lenz

unread,
Feb 24, 2011, 10:30:50 PM2/24/11
to closure-comp...@googlegroups.com

Luckily people seem to want to upgrade to 7 so it may actually happen ...

sent from a mobile phone excuse the spelling ...

Reply all
Reply to author
Forward
0 new messages