Build 533169stable
Module 611256
514 characters · in no known chunkDependencies
Source Raw
function(e,t,n){"use strict";var r=n(439619),i=n(207001),s=n(473560)(),a=n(267768),o=n(741623),l=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new o("`fn` is not a function");if("number"!=typeof t||t<0||t>0xffffffff||l(t)!==t)throw new o("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,u=!0;if("length"in e&&a){var c=a(e,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(u=!1)}return(r||u||!n)&&(s?i(e,"length",t,!0,!0):i(e,"length",t)),e}}