Return string values unwrapped.
This commit is contained in:
parent
dd59d7e911
commit
3691b6d977
1 changed files with 4 additions and 0 deletions
|
@ -84,6 +84,10 @@ public class MapWrapper extends ScriptableObject {
|
|||
if (obj != null && !(obj instanceof Scriptable)) {
|
||||
Context cx = Context.getCurrentContext();
|
||||
|
||||
if (obj instanceof String) {
|
||||
return obj;
|
||||
}
|
||||
|
||||
return cx.toObject(obj, core.global);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue