UNPKG

468 BJavaScriptView Raw
1'use strict';
2var IS_PURE = require('../internals/is-pure');
3var global = require('../internals/global');
4var fails = require('../internals/fails');
5
6// Forced replacement object prototype accessors methods
7module.exports = IS_PURE || !fails(function () {
8 var key = Math.random();
9 // In FF throws only define methods
10 // eslint-disable-next-line no-undef, no-useless-call
11 __defineSetter__.call(null, key, function () { /* empty */ });
12 delete global[key];
13});