RFR 8087292: nashorn should have a "fail-fast" option for scripting, analog to bash "set -e"
Hannes Wallnoefer
hannes.wallnoefer at oracle.com
Thu Sep 3 13:37:32 UTC 2015
Two suggestions:
The return code is just the "messenger" and we don't know what went
wrong, so I would prefer to use plain Error instead of RangeError.
And maybe we could set $EXEC.throwOnError = false by default so this
feature was easier to discover.
Hannes
Am 2015-09-03 um 15:33 schrieb Sundararajan Athijegannathan:
> Please review http://cr.openjdk.java.net/~sundar/8087292/ for
> https://bugs.openjdk.java.net/browse/JDK-8087292
>
> Thanks,
> -Sundar
More information about the nashorn-dev
mailing list