(obj, key, defaultValue)
| 9266 | } |
| 9267 | |
| 9268 | function getDataPropertyOrDefault(obj, key, defaultValue) { |
| 9269 | if (es5.isES5) { |
| 9270 | var desc = Object.getOwnPropertyDescriptor(obj, key); |
| 9271 | |
| 9272 | if (desc != null) { |
| 9273 | return desc.get == null && desc.set == null |
| 9274 | ? desc.value |
| 9275 | : defaultValue; |
| 9276 | } |
| 9277 | } else { |
| 9278 | return {}.hasOwnProperty.call(obj, key) ? obj[key] : undefined; |
| 9279 | } |
| 9280 | } |
| 9281 | |
| 9282 | function notEnumerableProp(obj, name, value) { |
| 9283 | if (isPrimitive(obj)) return obj; |
nothing calls this directly
no outgoing calls
no test coverage detected