ie8-dom-define.js 462 B

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