EasyDarwin/Win/web/assets/js/set-function-length-C9mYOxi...

2 lines
768 B
JavaScript

import{g as u}from"./get-intrinsic-DHvDm5IU.1737110241000.js";import{d as p}from"./define-data-property-Dy2YOX90.1737110241000.js";import{h as g}from"./has-property-descriptors-Bu2BqhW-.1737110241000.js";import{g as m}from"./gopd-fcd2-aIC.1737110241000.js";import{t as v}from"./es-errors-DzOT6E3C.1737110241000.js";var h=u,a=p,l=g(),n=m,s=v,F=h("%Math.floor%"),L=function(t,r){if(typeof t!="function")throw new s("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||F(r)!==r)throw new s("`length` must be a positive 32-bit integer");var f=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&n){var e=n(t,"length");e&&!e.configurable&&(o=!1),e&&!e.writable&&(i=!1)}return(o||i||!f)&&(l?a(t,"length",r,!0,!0):a(t,"length",r)),t};export{L as s};