|
Re: using instanceof in javascript [message #545536 is a reply to message #545369] |
Thu, 08 July 2010 08:12 |
|
On 7/7/2010 10:27 AM, Zohar Amir wrote:
> Hello,
> I started using eclipse to develop with javascript (actually it's JSFL,
> but it's close enough). I used exceptions in my code and eclipse flagged
> my syntax as wrong:
>
> try {
> // code here
> } catch (e if e instanceof MyException) {
> // handle exception
> }
>
> I found this syntax in
> https://developer.mozilla.org/en/Core_JavaScript_1.5_Referen ce/Statements/try...catch
>
>
> What's wrong?
>
> Thanks,
> Zohar.
How "close enough" is it really? I don't know JSFL, but does it also
document this construct as supported?
--
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03603 seconds