ie8-dom-define.js 459 B

1234567891011
  1. var DESCRIPTORS = require('../internals/descriptors');
  2. var fails = require('../internals/fails');
  3. var createElement = require('../internals/document-create-element');
  4. // Thank's IE8 for his funny defineProperty
  5. module.exports = !DESCRIPTORS && !fails(function () {
  6. // eslint-disable-next-line es/no-object-defineproperty -- requied for testing
  7. return Object.defineProperty(createElement('div'), 'a', {
  8. get: function () { return 7; }
  9. }).a != 7;
  10. });