(name unistring.String, descr PropertyDescriptor, throw bool)
| 83 | } |
| 84 | |
| 85 | func (o *objectGoMapSimple) defineOwnPropertyStr(name unistring.String, descr PropertyDescriptor, throw bool) bool { |
| 86 | if !o.val.runtime.checkHostObjectPropertyDescr(name, descr, throw) { |
| 87 | return false |
| 88 | } |
| 89 | |
| 90 | n := name.String() |
| 91 | if o.extensible || o._hasStr(n) { |
| 92 | o.data[n] = descr.Value.Export() |
| 93 | return true |
| 94 | } |
| 95 | |
| 96 | o.val.runtime.typeErrorResult(throw, "Cannot define property %s, object is not extensible", n) |
| 97 | return false |
| 98 | } |
| 99 | |
| 100 | func (o *objectGoMapSimple) deleteStr(name unistring.String, _ bool) bool { |
| 101 | delete(o.data, name.String()) |
nothing calls this directly
no test coverage detected