Changeset 79a0317 for imaps-frontend/node_modules/get-intrinsic/index.js
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/get-intrinsic/index.js
r0c6b92a r79a0317 2 2 3 3 var undefined; 4 5 var $Object = require('es-object-atoms'); 4 6 5 7 var $Error = require('es-errors'); … … 11 13 var $URIError = require('es-errors/uri'); 12 14 15 var abs = require('math-intrinsics/abs'); 16 var floor = require('math-intrinsics/floor'); 17 var max = require('math-intrinsics/max'); 18 var min = require('math-intrinsics/min'); 19 var pow = require('math-intrinsics/pow'); 20 var round = require('math-intrinsics/round'); 21 var sign = require('math-intrinsics/sign'); 22 13 23 var $Function = Function; 14 24 … … 20 30 }; 21 31 22 var $gOPD = Object.getOwnPropertyDescriptor; 23 if ($gOPD) { 24 try { 25 $gOPD({}, ''); 26 } catch (e) { 27 $gOPD = null; // this is IE 8, which has a broken gOPD 28 } 29 } 32 var $gOPD = require('gopd'); 33 var $defineProperty = require('es-define-property'); 30 34 31 35 var throwTypeError = function () { … … 50 54 51 55 var hasSymbols = require('has-symbols')(); 52 var hasProto = require('has-proto')(); 53 54 var getProto = Object.getPrototypeOf || (55 hasProto 56 ? function (x) { return x.__proto__; } // eslint-disable-line no-proto 57 : null 58 );56 57 var getProto = require('get-proto'); 58 var $ObjectGPO = require('get-proto/Object.getPrototypeOf'); 59 var $ReflectGPO = require('get-proto/Reflect.getPrototypeOf'); 60 61 var $apply = require('call-bind-apply-helpers/functionApply'); 62 var $call = require('call-bind-apply-helpers/functionCall'); 59 63 60 64 var needsEval = {}; … … 103 107 '%Math%': Math, 104 108 '%Number%': Number, 105 '%Object%': Object, 109 '%Object%': $Object, 110 '%Object.getOwnPropertyDescriptor%': $gOPD, 106 111 '%parseFloat%': parseFloat, 107 112 '%parseInt%': parseInt, … … 129 134 '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap, 130 135 '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef, 131 '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet 136 '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet, 137 138 '%Function.prototype.call%': $call, 139 '%Function.prototype.apply%': $apply, 140 '%Object.defineProperty%': $defineProperty, 141 '%Object.getPrototypeOf%': $ObjectGPO, 142 '%Math.abs%': abs, 143 '%Math.floor%': floor, 144 '%Math.max%': max, 145 '%Math.min%': min, 146 '%Math.pow%': pow, 147 '%Math.round%': round, 148 '%Math.sign%': sign, 149 '%Reflect.getPrototypeOf%': $ReflectGPO 132 150 }; 133 151 … … 224 242 var bind = require('function-bind'); 225 243 var hasOwn = require('hasown'); 226 var $concat = bind.call( Function.call, Array.prototype.concat);227 var $spliceApply = bind.call( Function.apply, Array.prototype.splice);228 var $replace = bind.call( Function.call, String.prototype.replace);229 var $strSlice = bind.call( Function.call, String.prototype.slice);230 var $exec = bind.call( Function.call, RegExp.prototype.exec);244 var $concat = bind.call($call, Array.prototype.concat); 245 var $spliceApply = bind.call($apply, Array.prototype.splice); 246 var $replace = bind.call($call, String.prototype.replace); 247 var $strSlice = bind.call($call, String.prototype.slice); 248 var $exec = bind.call($call, RegExp.prototype.exec); 231 249 232 250 /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
Note:
See TracChangeset
for help on using the changeset viewer.