[prev in list] [next in list] [prev in thread] [next in thread]
List: openjdk-nashorn-dev
Subject: Re: Bug with labeled break in catch and finally x
From: Sundararajan Athijegannathan <sundararajan.athijegannathan () oracle ! com>
Date: 2017-03-20 14:43:16
Message-ID: 58CFE7B4.3060901 () oracle ! com
[Download RAW message or body]
Hi,
This seems to be a bug. Thanks for reporting. Please file a bug.
Thanks,
-Sundar
On 20/03/17, 4:04 PM, Zalim Bashorov wrote:
> Hello!
>
> I found the bug in nashorn (1.8.0_121) -- all following functions return
> undefined but should return "OK":
>
> function box1() {
> label: {
> try {
> throw 1;
> }
> catch (e) {
> break label;
> }
> throw 2;
> }
> return 'OK';
> };
>
> function box2() {
> label: {
> try {
> throw 1;
> }
> finally {
> break label;
> }
> throw 2;
> }
> return 'OK';
> };
>
> function box3() {
> label: {
> try {
> throw 1;
> }
> finally {
> break label;
> }
> }
> return 'OK';
> };
>
>
> Where can I file an issue about it?
>
> Thanks!
> --
> Best regards,
> Zalim Bashorov
> Developer
> JetBrains
> http://www.jetbrains.com
> The Drive to Develop
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic