debian-mirror-gitlab/core-js/internals/ie8-dom-define.js

11 lines
378 B
JavaScript
Raw Normal View History

2019-09-25 13:30:05 +05:30
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 () {
return Object.defineProperty(createElement('div'), 'a', {
get: function () { return 7; }
}).a != 7;
});