(proxy, names)
| 403 | && Object.getOwnPropertyNames(value).some((key) => isFunction(value[key])); |
| 404 | |
| 405 | function needContext(proxy, names) { |
| 406 | const {isScriptable, isIndexable} = _descriptors(proxy); |
| 407 | |
| 408 | for (const prop of names) { |
| 409 | const scriptable = isScriptable(prop); |
| 410 | const indexable = isIndexable(prop); |
| 411 | const value = (indexable || scriptable) && proxy[prop]; |
| 412 | if ((scriptable && (isFunction(value) || hasFunction(value))) |
| 413 | || (indexable && isArray(value))) { |
| 414 | return true; |
| 415 | } |
| 416 | } |
| 417 | return false; |
| 418 | } |
no test coverage detected