Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/helpers/OwnPropertyKeys.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var GetIntrinsic = require('get-intrinsic'); 4 5 var callBind = require('call-bind'); 6 var callBound = require('call-bind/callBound'); 7 8 var $ownKeys = GetIntrinsic('%Reflect.ownKeys%', true); 9 var $pushApply = callBind.apply(GetIntrinsic('%Array.prototype.push%')); 10 var $SymbolValueOf = callBound('Symbol.prototype.valueOf', true); 11 var $gOPN = GetIntrinsic('%Object.getOwnPropertyNames%', true); 12 var $gOPS = $SymbolValueOf ? GetIntrinsic('%Object.getOwnPropertySymbols%') : null; 13 14 var keys = require('object-keys'); 15 16 module.exports = $ownKeys || function OwnPropertyKeys(source) { 17 var ownKeys = ($gOPN || keys)(source); 18 if ($gOPS) { 19 $pushApply(ownKeys, $gOPS(source)); 20 } 21 return ownKeys; 22 }; 3 // TODO, semver-major: remove 4 module.exports = require('own-keys');
Note:
See TracChangeset
for help on using the changeset viewer.