S
Simon Oberhammer
not sure if this is rhino specific, but in accordance to the mozilla-
docs [1] we have a lot of the following in our code. and jslint
doesn't like it:
try {
// function could throw exceptions
} catch (e if e == "InvalidNameException") {
} catch (e....)
jslint says:
line 50 Expected ')' and instead saw 'if'.
} catch (e if e instanceof Exception) {
line 50 Expected '{' and instead saw 'e'.
} catch (e if e instanceof Exception) {
line 50 Expected an assignment or function call and instead saw an
expression.
} catch (e if e instanceof Exception) {
not sure if i should fix jslint or our code...
greetings
simon
docs [1] we have a lot of the following in our code. and jslint
doesn't like it:
try {
// function could throw exceptions
} catch (e if e == "InvalidNameException") {
} catch (e....)
jslint says:
line 50 Expected ')' and instead saw 'if'.
} catch (e if e instanceof Exception) {
line 50 Expected '{' and instead saw 'e'.
} catch (e if e instanceof Exception) {
line 50 Expected an assignment or function call and instead saw an
expression.
} catch (e if e instanceof Exception) {
not sure if i should fix jslint or our code...
greetings
simon