RFR: 8156615:Catch parameter can be a BindingPattern in ES6 mode

Sundararajan Athijegannathan sundararajan.athijegannathan at oracle.com
Tue Nov 8 03:45:04 UTC 2016

You need to update Parser API implementation to handle catch parameter
being expression - rather than an IdentNode.

=> you need to

* add another getter in CatchNode to expose Expression

* Use it in IRTranslator (of Parser API impl.) to translate catch param
as expression

* You need to check for expression param in codegen pipeline to throw
"not yet implemented" error.


On 11/7/2016 9:40 PM, Srinivas Dama wrote:
> Please review:
> Bug: https://bugs.openjdk.java.net/browse/JDK-8156615 
> Webrev: http://cr.openjdk.java.net/~sdama/8156615/webrev.00/ 
> Please note that, this contains only parsing support for catch parameter as BindingPattern or BindingIdentifier.
> Regards,
> Srinivas

More information about the nashorn-dev mailing list