Re: ArrayIndexOutOfBoundsException in LexicalContext.java#inUnprotectedSwitchContext

2019-08-09 Thread Hannes Wallnöfer
Hi Anton, Thanks for the report - that’s a really interesting one! I’ll file a bug for it, but given that Nashorn is deprecated and this is part of the incomplete ES6 support I don’t think it will be deemed worthy of a 8u backport. Hannes > Am 09.08.2019 um 11:16 schrieb Anton Mitrofanov :

ArrayIndexOutOfBoundsException in LexicalContext.java#inUnprotectedSwitchContext

2019-08-09 Thread Anton Mitrofanov
Hi. We have encountered a bug in Nashorn with JDK8 u221. It can be reproduced by evaluation of this script with "jjs --language=es6": {{{ let x; }}} It results in "java.lang.ArrayIndexOutOfBoundsException: 16" output. It need exactly 15 curly braces to cause this bug.