Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

es.object.get-own-property-descriptor.js 771B

12345678910111213141516
  1. var $ = require('../internals/export');
  2. var fails = require('../internals/fails');
  3. var toIndexedObject = require('../internals/to-indexed-object');
  4. var nativeGetOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;
  5. var DESCRIPTORS = require('../internals/descriptors');
  6. var FAILS_ON_PRIMITIVES = fails(function () { nativeGetOwnPropertyDescriptor(1); });
  7. var FORCED = !DESCRIPTORS || FAILS_ON_PRIMITIVES;
  8. // `Object.getOwnPropertyDescriptor` method
  9. // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
  10. $({ target: 'Object', stat: true, forced: FORCED, sham: !DESCRIPTORS }, {
  11. getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {
  12. return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key);
  13. }
  14. });