Return string values unwrapped.

This commit is contained in:
hns 2003-06-16 18:54:49 +00:00
parent dd59d7e911
commit 3691b6d977

View file

@ -84,6 +84,10 @@ public class MapWrapper extends ScriptableObject {
if (obj != null && !(obj instanceof Scriptable)) { if (obj != null && !(obj instanceof Scriptable)) {
Context cx = Context.getCurrentContext(); Context cx = Context.getCurrentContext();
if (obj instanceof String) {
return obj;
}
return cx.toObject(obj, core.global); return cx.toObject(obj, core.global);
} }