char/avril
(wip) why'd you have to go and make things so complicaaaaated?
git clone https://git.t4t.associates/char/avril
92a4f7e
main
1(() => { 2const ReflectApply = Reflect . apply ; 3const FunctionBind = Function . prototype . bind ; 4const FunctionCall = Function . prototype . call ; 5const ObjectGetOwnPropertyDescriptor = Object . getOwnPropertyDescriptor ; 6const uncurryThis = ( fn ) => ReflectApply ( FunctionBind , FunctionCall , [ fn ]); 7const getter = ( prototype , name ) => 8uncurryThis ( ObjectGetOwnPropertyDescriptor ( prototype , name ). get ); 9const stack = ObjectGetOwnPropertyDescriptor ( new Error (), "stack" ); 10const ErrorGetStack = stack . get 11 ?uncurryThis ( stack . get ) 12 :( error ) => ObjectGetOwnPropertyDescriptor ( error , "stack" )?. value ; 13const TypedArrayPrototype = Object . getPrototypeOf ( Uint8Array . prototype ); 14 15return Object . freeze ( Object . assign ( Object . create ( null ), { 16 Array, 17 ArrayBuffer, 18ArrayBufferPrototypeGetResizable :getter ( 19ArrayBuffer . prototype , 20"resizable" , 21), 22ArrayFrom :Array . from , 23ArrayIsArray :Array . isArray , 24ArrayPrototypeUnshift :uncurryThis ( Array . prototype . unshift ), 25ArrayPrototypeMap :uncurryThis ( Array . prototype . map ), 26ArrayPrototypeJoin :uncurryThis ( Array . prototype . join ), 27ArrayPrototypePop :uncurryThis ( Array . prototype . pop ), 28ArrayPrototypePush :uncurryThis ( Array . prototype . push ), 29ArrayPrototypeSlice :uncurryThis ( Array . prototype . slice ), 30ArrayPrototypeSort :uncurryThis ( Array . prototype . sort ), 31ArrayPrototypeSplice :uncurryThis ( Array . prototype . splice ), 32IteratorPrototype :Object . getPrototypeOf ( 33Object . getPrototypeOf ([][ Symbol . iterator ]()), 34), 35 Error, 36 FinalizationRegistry, 37ErrorCaptureStackTrace :Error . captureStackTrace , 38 ErrorGetStack, 39ErrorPrototype :Error . prototype , 40DatePrototype :Date . prototype , 41DatePrototypeGetTime :uncurryThis ( Date . prototype . getTime ), 42DatePrototypeToISOString :uncurryThis ( Date . prototype . toISOString ), 43MapPrototype :Map . prototype , 44MapPrototypeEntries :uncurryThis ( Map . prototype . entries ), 45MapIteratorPrototypeNext :uncurryThis ( 46Object . getPrototypeOf ( new Map (). entries ()). next , 47), 48SetPrototype :Set . prototype , 49SetPrototypeValues :uncurryThis ( Set . prototype . values ), 50SetIteratorPrototypeNext :uncurryThis ( 51Object . getPrototypeOf ( new Set (). values ()). next , 52), 53 RegExp, 54RegExpPrototype :RegExp . prototype , 55RegExpPrototypeExec :uncurryThis ( RegExp . prototype . exec ), 56RegExpPrototypeGetSource :getter ( RegExp . prototype , "source" ), 57RegExpPrototypeGetFlags :getter ( RegExp . prototype , "flags" ), 58JSONStringify :JSON . stringify , 59 Map, 60MapPrototypeGet :uncurryThis ( Map . prototype . get ), 61MapPrototypeSet :uncurryThis ( Map . prototype . set ), 62MapPrototypeHas :uncurryThis ( Map . prototype . has ), 63MapPrototypeDelete :uncurryThis ( Map . prototype . delete ), 64MapPrototypeClear :uncurryThis ( Map . prototype . clear ), 65MapPrototypeForEach :uncurryThis ( Map . prototype . forEach ), 66MathMin :Math . min , 67NumberParseInt :Number . parseInt , 68NumberParseFloat :Number . parseFloat , 69NumberPrototypeToFixed :uncurryThis ( Number . prototype . toFixed ), 70NumberIsFinite :Number . isFinite , 71 Object, 72ObjectPrototype :Object . prototype , 73ObjectSetPrototypeOf :Object . setPrototypeOf , 74ObjectCreate :Object . create , 75ObjectDefineProperty :Object . defineProperty , 76ObjectFreeze :Object . freeze , 77ObjectGetOwnPropertyDescriptor :Object . getOwnPropertyDescriptor , 78ObjectGetPrototypeOf :Object . getPrototypeOf , 79 Promise, 80 RangeError, 81 Proxy, 82 ReflectApply, 83ReflectConstruct :Reflect . construct , 84ReflectDefineProperty :Reflect . defineProperty , 85ReflectDeleteProperty :Reflect . deleteProperty , 86ReflectGet :Reflect . get , 87ReflectHas :Reflect . has , 88ReflectSet :Reflect . set , 89ReflectOwnKeys :Reflect . ownKeys , 90 Set, 91SetPrototypeAdd :uncurryThis ( Set . prototype . add ), 92SetPrototypeDelete :uncurryThis ( Set . prototype . delete ), 93SetPrototypeHas :uncurryThis ( Set . prototype . has ), 94 String, 95StringPrototypeCharCodeAt :uncurryThis ( String . prototype . charCodeAt ), 96StringPrototypeIncludes :uncurryThis ( String . prototype . includes ), 97StringPrototypeIndexOf :uncurryThis ( String . prototype . indexOf ), 98StringPrototypeLastIndexOf :uncurryThis ( String . prototype . lastIndexOf ), 99StringPrototypeRepeat :uncurryThis ( String . prototype . repeat ), 100StringPrototypeReplaceAll :uncurryThis ( String . prototype . replaceAll ), 101StringPrototypeSlice :uncurryThis ( String . prototype . slice ), 102StringPrototypeToLowerCase :uncurryThis ( String . prototype . toLowerCase ), 103StringPrototypeIsWellFormed :uncurryThis ( String . prototype . isWellFormed ), 104StringPrototypeToWellFormed :uncurryThis ( String . prototype . toWellFormed ), 105SymbolIterator :Symbol . iterator , 106SymbolToStringTag :Symbol . toStringTag , 107SymbolFor :Symbol . for , 108 TypeError, 109 WeakMap, 110WeakMapPrototypeGet :uncurryThis ( WeakMap . prototype . get ), 111WeakMapPrototypeSet :uncurryThis ( WeakMap . prototype . set ), 112 Uint8Array, 113Uint8ArrayPrototypeSet :uncurryThis ( Uint8Array . prototype . set ), 114TypedArrayPrototypeGetLength :getter ( TypedArrayPrototype , "length" ), 115TypedArrayPrototypeGetBuffer :getter ( TypedArrayPrototype , "buffer" ), 116TypedArrayPrototypeGetByteLength :getter ( TypedArrayPrototype , "byteLength" ), 117TypedArrayPrototypeGetByteOffset :getter ( TypedArrayPrototype , "byteOffset" ), 118TypedArrayPrototypeGetTag :getter ( TypedArrayPrototype , Symbol . toStringTag ), 119 uncurryThis, 120 getter, 121})); 122})();