You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "main" undefined:1: SyntaxError: Unexpected reserved word
import { Selector } from 'testcafe';
^^^^^^
com.eclipsesource.v8.V8ScriptCompilationException
at com.eclipsesource.v8.V8._executeIntegerScript(Native Method)
at com.eclipsesource.v8.V8.executeIntegerScript(V8.java:911)
at com.eclipsesource.v8.V8.executeIntegerScript(V8.java:436)
at com.eclipsesource.v8.V8.executeIntegerScript(V8.java:418)
at com.js.javatojs.FirstProgram.main(FirstProgram.java:16)
Program :
import com.eclipsesource.v8.V8;
public class FirstProgram {
public static void main(String[] args) {
V8 runtime = V8.createV8Runtime();
int result = runtime.executeIntegerScript(""
+ "import { Selector } from 'testcafe';\n"
+ "fixture `Getting Started`\n"
+ ".page `http://devexpress.github.io/testcafe/example`;\n");
System.out.println(result);
runtime.release();
}
}
The text was updated successfully, but these errors were encountered:
The version of V8 (node) we are targetting does include this. There is an open issue to update the underlying V8 version. See #334. Looks like you can use babel to transpile [1]
Error StackTrace
Program :
The text was updated successfully, but these errors were encountered: