mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-22 16:35:14 +00:00
12 lines
459 B
JavaScript
12 lines
459 B
JavaScript
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;
|
|
});
|