@Test
public void testConsStringFromMirror() throws ScriptException {
final Bindings b = e.getBindings(ScriptContext.ENGINE_SCOPE);
//final Map<Object, Object> m = new HashMap<>();
e.eval("var x = 'f'; x += 'oo'; var obj = {x: x};");
assertEquals("foo", ((JSObject)b.get("obj")).getMember("x"));
}
ConsStringTest.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:openjdk-jdk10
作者:
评论列表
文章目录