(target *Object, prop unistring.String)
| 100 | } |
| 101 | |
| 102 | func (h *nativeProxyHandler) hasStr(target *Object, prop unistring.String) (bool, bool) { |
| 103 | if trap := h.handler.HasIdx; trap != nil { |
| 104 | if idx, ok := strToInt(prop); ok { |
| 105 | return trap(target, idx), true |
| 106 | } |
| 107 | } |
| 108 | if trap := h.handler.Has; trap != nil { |
| 109 | return trap(target, prop.String()), true |
| 110 | } |
| 111 | return false, false |
| 112 | } |
| 113 | |
| 114 | func (h *nativeProxyHandler) hasIdx(target *Object, prop valueInt) (bool, bool) { |
| 115 | if trap := h.handler.HasIdx; trap != nil { |