Last change
on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
689 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | 'use strict';
|
---|
| 2 | var IS_PURE = require('../internals/is-pure');
|
---|
| 3 | var global = require('../internals/global');
|
---|
| 4 | var fails = require('../internals/fails');
|
---|
| 5 | var WEBKIT = require('../internals/engine-webkit-version');
|
---|
| 6 |
|
---|
| 7 | // Forced replacement object prototype accessors methods
|
---|
| 8 | module.exports = IS_PURE || !fails(function () {
|
---|
| 9 | // This feature detection crashes old WebKit
|
---|
| 10 | // https://github.com/zloirock/core-js/issues/232
|
---|
| 11 | if (WEBKIT && WEBKIT < 535) return;
|
---|
| 12 | var key = Math.random();
|
---|
| 13 | // In FF throws only define methods
|
---|
| 14 | // eslint-disable-next-line no-undef, no-useless-call -- required for testing
|
---|
| 15 | __defineSetter__.call(null, key, function () { /* empty */ });
|
---|
| 16 | delete global[key];
|
---|
| 17 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.