nashorn/test/script/basic/convert.js
changeset 27099 eceb216332cb
parent 24778 2ff5d7041566
--- a/nashorn/test/script/basic/convert.js	Mon Oct 13 17:16:32 2014 +0200
+++ b/nashorn/test/script/basic/convert.js	Mon Oct 13 23:38:49 2014 +0530
@@ -42,7 +42,7 @@
 
 // object to Map
 obj = { foo: 333, bar: 'hello'};
-var map = ScriptUtils.convert(obj, java.util.Map.class);
+var map = ScriptUtils.wrap(obj);
 print(map instanceof java.util.Map);
 for (m in map) {
    print(m + " " + map[m]);