descriptors.js 308 B

1234567
  1. var fails = require('../internals/fails');
  2. // Detect IE8's incomplete defineProperty implementation
  3. module.exports = !fails(function () {
  4. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  5. return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
  6. });