(String m)
| 1591 | Dict.Prop canon = new Dict.Prop(m).findCanon(); |
| 1592 | |
| 1593 | Object ret = attributes.getOrConstruct(canon); |
| 1594 | |
| 1595 | |
| 1596 | if (ret instanceof Box.FunctionOfBox) { |
| 1597 | return ((Supplier) (() -> ((Box.FunctionOfBox) ret).apply(this))); |
| 1598 | } |
| 1599 | |
| 1600 | return ret; |
| 1601 | } |
| 1602 | |
| 1603 | @Override |
| 1604 | @HiddenInAutocomplete |
| 1605 | public Object asMap_set(String name, Object value) { |
| 1606 | |
| 1607 | // workaround bug in Nashorn |
| 1608 | // if (value instanceof ConsString) value = value.toString(); //jdk9 module security breaks this |
| 1609 | if (value != null && value.getClass().getName().endsWith("ConsString")) value = "" + value; |
| 1610 | |
| 1611 | Dict.Prop canon = new Dict.Prop(name).toCanon(); |
nothing calls this directly
no test coverage detected