MCPcopy Create free account
hub / github.com/cujojs/poly / hasGetOwnPropertyDescriptor

Function hasGetOwnPropertyDescriptor

object.js:248–256  ·  view source on GitHub ↗
(object)

Source from the content-addressed store, hash-verified

246 }
247
248 function hasGetOwnPropertyDescriptor (object) {
249 if (('getOwnPropertyDescriptor' in Object)) {
250 object['sentinel3'] = true;
251 try {
252 return (Object.getOwnPropertyDescriptor(object, 'sentinel3').value);
253 }
254 catch (ex) { /* squelch */ }
255 }
256 }
257
258 function PolyBase () {}
259

Callers 1

object.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected