GoScrobble/web/node_modules/core-js-pure/internals/ie8-dom-define.js

12 lines
459 B
JavaScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
var DESCRIPTORS = require('../internals/descriptors');
var fails = require('../internals/fails');
var createElement = require('../internals/document-create-element');
// Thank's IE8 for his funny defineProperty
module.exports = !DESCRIPTORS && !fails(function () {
// eslint-disable-next-line es/no-object-defineproperty -- requied for testing
return Object.defineProperty(createElement('div'), 'a', {
get: function () { return 7; }
}).a != 7;
});