eclipsesource / eclipsesource/J2V8

jvm exists on script compilation issue with NodeJS class execution

Open
#241 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.6k
Forks
387
PR merge metrics
No merged PRs in 30d

Description

the jvm exits on a script compilation error when using NodeJS.exec(File) (aborts before 'after release')

my simple script (test.js):

var test = '

java code:

final NodeJS nodeJS = NodeJS.createNodeJS();
nodeJS.exec(new File("test.js"));
while(nodeJS.isRunning()) {
nodeJS.handleMessage();
}
nodeJS.release();
System.out.println("after release");

error message:
node.js:376
callback();
^
C:\projects\javatest\test.js:2: SyntaxError: Unexpected token ILLEGAL

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.