- 资源类型
- 转载
- 语言
- English
当调用org.graalvm.polyglot.Context的eval方法时获取到的Value为undefine,导致无法获取其内部定义的函数等. 详细源码和报错信息在
BUG已解决:
方式: 升级GraalVM版本并在Context构建中新增一条 .option("js.esm-eval-returns-exports","true")的代码即可解决
Unsupported operation Value.getMember(String) for 'undefined'(language: JavaScript, type: undefined). You can ensure that the operation is supported using Value.hasMembers(). · Issue #758 · oracle/graaljs
I tried to embed JS with GraalVM in my project, but an error occurred when I tried to run it. public class JSPlugin { Context context; File mainJSFile; protected Value jsExports = null; private Log...
github.com
BUG已解决:
方式: 升级GraalVM版本并在Context构建中新增一条 .option("js.esm-eval-returns-exports","true")的代码即可解决