Re: JavaScript in JSR223 Post Processor

2021-11-14 Thread Felix Schumacher
Am 14.11.21 um 12:17 schrieb Vladimir Sitnikov: >> Sadly the nashorn jars are Java 11+. > The default JavaScript engine is present till Java 14, > so I just thought we could use "in-JDK Nashorn" for Java 8..14, and the > external one in 15+. > I hope nashorn-core does not force us to use module

Re: JavaScript in JSR223 Post Processor

2021-11-14 Thread Vladimir Sitnikov
>Sadly the nashorn jars are Java 11+. The default JavaScript engine is present till Java 14, so I just thought we could use "in-JDK Nashorn" for Java 8..14, and the external one in 15+. I hope nashorn-core does not force us to use module path, however, I have not explored it. Does JMeter work

Re: JavaScript in JSR223 Post Processor

2021-11-14 Thread Felix Schumacher
Am 13.11.21 um 20:17 schrieb Vladimir Sitnikov: > Felix>I am preparing a patch to update the Mozilla Rhino implementation in > Felix>JMeter to the current one (1.7.13) > > An alternative option is to bundle https://github.com/openjdk/nashorn > The jar is 2.5 MiB: >

Re: JavaScript in JSR223 Post Processor

2021-11-13 Thread Vladimir Sitnikov
Felix>I am preparing a patch to update the Mozilla Rhino implementation in Felix>JMeter to the current one (1.7.13) An alternative option is to bundle https://github.com/openjdk/nashorn The jar is 2.5 MiB: https://repo1.maven.org/maven2/org/openjdk/nashorn/nashorn-core/15.3/ One more option is

Re: JavaScript in JSR223 Post Processor

2020-11-17 Thread Felix Schumacher
Am 16.11.20 um 18:57 schrieb Vladimir Sitnikov: > Hi, > > I see the following options: > a) Add support for GraalJS to JMeter. GraalJS is a standalone library that > evaluates JavaScript (of course, it works faster with GraalJS JIT compiler, > however it should work with any JVM) > b) Use

Re: JavaScript in JSR223 Post Processor

2020-11-16 Thread Vladimir Sitnikov
Hi, I see the following options: a) Add support for GraalJS to JMeter. GraalJS is a standalone library that evaluates JavaScript (of course, it works faster with GraalJS JIT compiler, however it should work with any JVM) b) Use Nashorn as a standalone library. It looks like there are people

Re: JavaScript in JSR223 Post Processor

2020-11-16 Thread Pieraś
What about open java? pon., 16 lis 2020, 18:42 użytkownik Beth Schrag napisał: > Hello, > I am wondering if anyone else has JavaScript code in JSR223 Post > Processors that no longer run because the JS engine was removed from the > latest version of Java. > > I have quite a bit of complicated

JavaScript in JSR223 Post Processor

2020-11-16 Thread Beth Schrag
Hello, I am wondering if anyone else has JavaScript code in JSR223 Post Processors that no longer run because the JS engine was removed from the latest version of Java. I have quite a bit of complicated JS code that I would rather not have to rewrite and so had to downgrade to Java 8 in order