Closed isaacs closed 1 year ago
A lot of the "Safe" stuff isn't a good idea, because it's mostly hardening iteration, which isn't really a great idea.
Date is a big oversight, not sure how I missed that. The rest are pretty minor.
AggregateErrorPrototypeConstructor
AggregateErrorPrototypeMessage
AggregateErrorPrototypeName
ArrayBuffer
ArrayBufferGetSymbolSpecies
ArrayBufferIsView
ArrayBufferLength
ArrayBufferName
ArrayBufferPrototype
ArrayBufferPrototypeConstructor
ArrayBufferPrototypeGetByteLength
ArrayBufferPrototypeSlice
ArrayBufferPrototypeSymbolToStringTag
ArrayGetSymbolSpecies
ArrayIterator
ArrayIteratorPrototype
ArrayIteratorPrototypeNext
ArrayIteratorPrototypeSymbolToStringTag
ArrayOfApply
ArrayPrototypeConstructor
ArrayPrototypeLength
ArrayPrototypeSymbolUnscopables
AsyncIteratorPrototype
BigInt64ArrayPrototypeBYTES_PER_ELEMENT
BigInt64ArrayPrototypeConstructor
BigIntPrototypeConstructor
BigIntPrototypeSymbolToStringTag
BigUint64ArrayPrototypeBYTES_PER_ELEMENT
BigUint64ArrayPrototypeConstructor
BooleanPrototypeConstructor
DataViewPrototypeConstructor
DataViewPrototypeSymbolToStringTag
Date
DateLength
DateName
DateNow
DateParse
DatePrototype
DatePrototypeConstructor
DatePrototypeGetDate
DatePrototypeGetDay
DatePrototypeGetFullYear
DatePrototypeGetHours
DatePrototypeGetMilliseconds
DatePrototypeGetMinutes
DatePrototypeGetMonth
DatePrototypeGetSeconds
DatePrototypeGetTime
DatePrototypeGetTimezoneOffset
DatePrototypeGetUTCDate
DatePrototypeGetUTCDay
DatePrototypeGetUTCFullYear
DatePrototypeGetUTCHours
DatePrototypeGetUTCMilliseconds
DatePrototypeGetUTCMinutes
DatePrototypeGetUTCMonth
DatePrototypeGetUTCSeconds
DatePrototypeGetYear
DatePrototypeSetDate
DatePrototypeSetFullYear
DatePrototypeSetHours
DatePrototypeSetMilliseconds
DatePrototypeSetMinutes
DatePrototypeSetMonth
DatePrototypeSetSeconds
DatePrototypeSetTime
DatePrototypeSetUTCDate
DatePrototypeSetUTCFullYear
DatePrototypeSetUTCHours
DatePrototypeSetUTCMilliseconds
DatePrototypeSetUTCMinutes
DatePrototypeSetUTCMonth
DatePrototypeSetUTCSeconds
DatePrototypeSetYear
DatePrototypeSymbolToPrimitive
DatePrototypeToDateString
DatePrototypeToGMTString
DatePrototypeToISOString
DatePrototypeToJSON
DatePrototypeToLocaleDateString
DatePrototypeToLocaleString
DatePrototypeToLocaleTimeString
DatePrototypeToString
DatePrototypeToTimeString
DatePrototypeToUTCString
DatePrototypeValueOf
DateUTC
ErrorPrototypeConstructor
ErrorPrototypeMessage
ErrorPrototypeName
EvalErrorPrototypeConstructor
EvalErrorPrototypeMessage
EvalErrorPrototypeName
FinalizationRegistry
FinalizationRegistryLength
FinalizationRegistryName
FinalizationRegistryPrototype
FinalizationRegistryPrototypeConstructor
FinalizationRegistryPrototypeRegister
FinalizationRegistryPrototypeSymbolToStringTag
FinalizationRegistryPrototypeUnregister
Float32ArrayPrototypeBYTES_PER_ELEMENT
Float32ArrayPrototypeConstructor
Float64ArrayPrototypeBYTES_PER_ELEMENT
Float64ArrayPrototypeConstructor
FunctionPrototypeConstructor
FunctionPrototypeGetArguments
FunctionPrototypeGetCaller
FunctionPrototypeLength
FunctionPrototypeName
FunctionPrototypeSetArguments
FunctionPrototypeSetCaller
FunctionPrototypeSymbolHasInstance
Int16ArrayPrototypeBYTES_PER_ELEMENT
Int16ArrayPrototypeConstructor
Int32ArrayPrototypeBYTES_PER_ELEMENT
Int32ArrayPrototypeConstructor
Int8ArrayPrototypeBYTES_PER_ELEMENT
Int8ArrayPrototypeConstructor
JSONSymbolToStringTag
MapGetSymbolSpecies
MapPrototypeConstructor
MapPrototypeSymbolIterator
MapPrototypeSymbolToStringTag
MathHypotApply
MathMinApply
MathSymbolToStringTag
NumberPrototypeConstructor
ObjectPrototypeConstructor
ObjectPrototypeGet__proto__
ObjectPrototypeSet__proto__
PromiseGetSymbolSpecies
PromisePrototypeConstructor
PromisePrototypeSymbolToStringTag
ProxyLength
ProxyName
ProxyRevocable
RangeErrorPrototypeConstructor
RangeErrorPrototypeMessage
RangeErrorPrototypeName
ReferenceErrorPrototypeConstructor
ReferenceErrorPrototypeMessage
ReferenceErrorPrototypeName
ReflectSymbolToStringTag
RegExpGet$&
RegExpGet$'
RegExpGet$+
RegExpGet$1
RegExpGet$2
RegExpGet$3
RegExpGet$4
RegExpGet$5
RegExpGet$6
RegExpGet$7
RegExpGet$8
RegExpGet$9
RegExpGet$_
RegExpGetInput
RegExpGetLastMatch
RegExpGetLastParen
RegExpGetLeftContext
RegExpGetRightContext
RegExpGetSymbolSpecies
RegExpPrototypeConstructor
RegExpPrototypeGetHasIndices
RegExpPrototypeSymbolMatch
RegExpPrototypeSymbolMatchAll
RegExpPrototypeSymbolReplace
RegExpPrototypeSymbolSearch
RegExpPrototypeSymbolSplit
RegExpSet$&
RegExpSet$'
RegExpSet$+
RegExpSet$1
RegExpSet$2
RegExpSet$3
RegExpSet$4
RegExpSet$5
RegExpSet$6
RegExpSet$7
RegExpSet$8
RegExpSet$9
RegExpSet$_
RegExpSet$`
RegExpSetInput
RegExpSetLastMatch
RegExpSetLastParen
RegExpSetLeftContext
RegExpSetRightContext
SafeArrayIterator
SafeFinalizationRegistry
SafeMap
SafePromiseAll
SafePromiseAllReturnArrayLike
SafePromiseAllReturnVoid
SafePromiseAllSettled
SafePromiseAllSettledReturnVoid
SafePromiseAny
SafePromisePrototypeFinally
SafePromiseRace
SafeSet
SafeStringIterator
SafeStringPrototypeSearch
SafeWeakMap
SafeWeakRef
SafeWeakSet
SetGetSymbolSpecies
SetPrototypeConstructor
SetPrototypeSymbolIterator
SetPrototypeSymbolToStringTag
StringIterator
StringIteratorPrototype
StringIteratorPrototypeNext
StringIteratorPrototypeSymbolToStringTag
StringPrototypeConcatApply
StringPrototypeConstructor
StringPrototypeLength
StringPrototypeSymbolIterator
SymbolPrototypeConstructor
SymbolPrototypeSymbolToStringTag
SyntaxErrorPrototypeConstructor
SyntaxErrorPrototypeMessage
SyntaxErrorPrototypeName
TypeErrorPrototypeConstructor
TypeErrorPrototypeMessage
TypeErrorPrototypeName
TypedArray
TypedArrayGetSymbolSpecies
TypedArrayLength
TypedArrayName
TypedArrayPrototypeConstructor
TypedArrayPrototypeCopyWithin
TypedArrayPrototypeEntries
TypedArrayPrototypeEvery
TypedArrayPrototypeFill
TypedArrayPrototypeFilter
TypedArrayPrototypeFind
TypedArrayPrototypeFindIndex
TypedArrayPrototypeForEach
TypedArrayPrototypeIncludes
TypedArrayPrototypeIndexOf
TypedArrayPrototypeJoin
TypedArrayPrototypeKeys
TypedArrayPrototypeLastIndexOf
TypedArrayPrototypeMap
TypedArrayPrototypeReduce
TypedArrayPrototypeReduceRight
TypedArrayPrototypeReverse
TypedArrayPrototypeSet
TypedArrayPrototypeSlice
TypedArrayPrototypeSome
TypedArrayPrototypeSort
TypedArrayPrototypeSubarray
TypedArrayPrototypeSymbolIterator
TypedArrayPrototypeToLocaleString
TypedArrayPrototypeToString
TypedArrayPrototypeValues
URIErrorPrototypeConstructor
URIErrorPrototypeMessage
URIErrorPrototypeName
Uint16ArrayPrototypeBYTES_PER_ELEMENT
Uint16ArrayPrototypeConstructor
Uint32ArrayPrototypeBYTES_PER_ELEMENT
Uint32ArrayPrototypeConstructor
Uint8ArrayPrototypeBYTES_PER_ELEMENT
Uint8ArrayPrototypeConstructor
Uint8ClampedArrayPrototypeBYTES_PER_ELEMENT
Uint8ClampedArrayPrototypeConstructor
WeakMapPrototypeConstructor
WeakMapPrototypeSymbolToStringTag
WeakRef
WeakRefLength
WeakRefName
WeakRefPrototype
WeakRefPrototypeConstructor
WeakRefPrototypeDeref
WeakRefPrototypeSymbolToStringTag
WeakSetPrototypeConstructor
WeakSetPrototypeSymbolToStringTag
eval
makeSafe
Added npm run diff to check this. That's easier to work from than an issue. Closing, even though this isn't done yet.
npm run diff
A lot of the "Safe" stuff isn't a good idea, because it's mostly hardening iteration, which isn't really a great idea.
Date is a big oversight, not sure how I missed that. The rest are pretty minor.
AggregateErrorPrototypeConstructor
AggregateErrorPrototypeMessage
AggregateErrorPrototypeName
ArrayBuffer
ArrayBufferGetSymbolSpecies
ArrayBufferIsView
ArrayBufferLength
ArrayBufferName
ArrayBufferPrototype
ArrayBufferPrototypeConstructor
ArrayBufferPrototypeGetByteLength
ArrayBufferPrototypeSlice
ArrayBufferPrototypeSymbolToStringTag
ArrayGetSymbolSpecies
ArrayIterator
ArrayIteratorPrototype
ArrayIteratorPrototypeNext
ArrayIteratorPrototypeSymbolToStringTag
ArrayOfApply
ArrayPrototypeConstructor
ArrayPrototypeLength
ArrayPrototypeSymbolUnscopables
AsyncIteratorPrototype
BigInt64ArrayPrototypeBYTES_PER_ELEMENT
BigInt64ArrayPrototypeConstructor
BigIntPrototypeConstructor
BigIntPrototypeSymbolToStringTag
BigUint64ArrayPrototypeBYTES_PER_ELEMENT
BigUint64ArrayPrototypeConstructor
BooleanPrototypeConstructor
DataViewPrototypeConstructor
DataViewPrototypeSymbolToStringTag
Date
DateLength
DateName
DateNow
DateParse
DatePrototype
DatePrototypeConstructor
DatePrototypeGetDate
DatePrototypeGetDay
DatePrototypeGetFullYear
DatePrototypeGetHours
DatePrototypeGetMilliseconds
DatePrototypeGetMinutes
DatePrototypeGetMonth
DatePrototypeGetSeconds
DatePrototypeGetTime
DatePrototypeGetTimezoneOffset
DatePrototypeGetUTCDate
DatePrototypeGetUTCDay
DatePrototypeGetUTCFullYear
DatePrototypeGetUTCHours
DatePrototypeGetUTCMilliseconds
DatePrototypeGetUTCMinutes
DatePrototypeGetUTCMonth
DatePrototypeGetUTCSeconds
DatePrototypeGetYear
DatePrototypeSetDate
DatePrototypeSetFullYear
DatePrototypeSetHours
DatePrototypeSetMilliseconds
DatePrototypeSetMinutes
DatePrototypeSetMonth
DatePrototypeSetSeconds
DatePrototypeSetTime
DatePrototypeSetUTCDate
DatePrototypeSetUTCFullYear
DatePrototypeSetUTCHours
DatePrototypeSetUTCMilliseconds
DatePrototypeSetUTCMinutes
DatePrototypeSetUTCMonth
DatePrototypeSetUTCSeconds
DatePrototypeSetYear
DatePrototypeSymbolToPrimitive
DatePrototypeToDateString
DatePrototypeToGMTString
DatePrototypeToISOString
DatePrototypeToJSON
DatePrototypeToLocaleDateString
DatePrototypeToLocaleString
DatePrototypeToLocaleTimeString
DatePrototypeToString
DatePrototypeToTimeString
DatePrototypeToUTCString
DatePrototypeValueOf
DateUTC
ErrorPrototypeConstructor
ErrorPrototypeMessage
ErrorPrototypeName
EvalErrorPrototypeConstructor
EvalErrorPrototypeMessage
EvalErrorPrototypeName
FinalizationRegistry
FinalizationRegistryLength
FinalizationRegistryName
FinalizationRegistryPrototype
FinalizationRegistryPrototypeConstructor
FinalizationRegistryPrototypeRegister
FinalizationRegistryPrototypeSymbolToStringTag
FinalizationRegistryPrototypeUnregister
Float32ArrayPrototypeBYTES_PER_ELEMENT
Float32ArrayPrototypeConstructor
Float64ArrayPrototypeBYTES_PER_ELEMENT
Float64ArrayPrototypeConstructor
FunctionPrototypeConstructor
FunctionPrototypeGetArguments
FunctionPrototypeGetCaller
FunctionPrototypeLength
FunctionPrototypeName
FunctionPrototypeSetArguments
FunctionPrototypeSetCaller
FunctionPrototypeSymbolHasInstance
Int16ArrayPrototypeBYTES_PER_ELEMENT
Int16ArrayPrototypeConstructor
Int32ArrayPrototypeBYTES_PER_ELEMENT
Int32ArrayPrototypeConstructor
Int8ArrayPrototypeBYTES_PER_ELEMENT
Int8ArrayPrototypeConstructor
JSONSymbolToStringTag
MapGetSymbolSpecies
MapPrototypeConstructor
MapPrototypeSymbolIterator
MapPrototypeSymbolToStringTag
MathHypotApply
MathMinApply
MathSymbolToStringTag
NumberPrototypeConstructor
ObjectPrototypeConstructor
ObjectPrototypeGet__proto__
ObjectPrototypeSet__proto__
PromiseGetSymbolSpecies
PromisePrototypeConstructor
PromisePrototypeSymbolToStringTag
ProxyLength
ProxyName
ProxyRevocable
RangeErrorPrototypeConstructor
RangeErrorPrototypeMessage
RangeErrorPrototypeName
ReferenceErrorPrototypeConstructor
ReferenceErrorPrototypeMessage
ReferenceErrorPrototypeName
ReflectSymbolToStringTag
RegExpGet$&
RegExpGet$'
RegExpGet$+
RegExpGet$1
RegExpGet$2
RegExpGet$3
RegExpGet$4
RegExpGet$5
RegExpGet$6
RegExpGet$7
RegExpGet$8
RegExpGet$9
RegExpGet$_
RegExpGetInput
RegExpGetLastMatch
RegExpGetLastParen
RegExpGetLeftContext
RegExpGetRightContext
RegExpGetSymbolSpecies
RegExpPrototypeConstructor
RegExpPrototypeGetHasIndices
RegExpPrototypeSymbolMatch
RegExpPrototypeSymbolMatchAll
RegExpPrototypeSymbolReplace
RegExpPrototypeSymbolSearch
RegExpPrototypeSymbolSplit
RegExpSet$&
RegExpSet$'
RegExpSet$+
RegExpSet$1
RegExpSet$2
RegExpSet$3
RegExpSet$4
RegExpSet$5
RegExpSet$6
RegExpSet$7
RegExpSet$8
RegExpSet$9
RegExpSet$_
RegExpSet$`
RegExpSetInput
RegExpSetLastMatch
RegExpSetLastParen
RegExpSetLeftContext
RegExpSetRightContext
SafeArrayIterator
SafeFinalizationRegistry
SafeMap
SafePromiseAll
SafePromiseAllReturnArrayLike
SafePromiseAllReturnVoid
SafePromiseAllSettled
SafePromiseAllSettledReturnVoid
SafePromiseAny
SafePromisePrototypeFinally
SafePromiseRace
SafeSet
SafeStringIterator
SafeStringPrototypeSearch
SafeWeakMap
SafeWeakRef
SafeWeakSet
SetGetSymbolSpecies
SetPrototypeConstructor
SetPrototypeSymbolIterator
SetPrototypeSymbolToStringTag
StringIterator
StringIteratorPrototype
StringIteratorPrototypeNext
StringIteratorPrototypeSymbolToStringTag
StringPrototypeConcatApply
StringPrototypeConstructor
StringPrototypeLength
StringPrototypeSymbolIterator
SymbolPrototypeConstructor
SymbolPrototypeSymbolToStringTag
SyntaxErrorPrototypeConstructor
SyntaxErrorPrototypeMessage
SyntaxErrorPrototypeName
TypeErrorPrototypeConstructor
TypeErrorPrototypeMessage
TypeErrorPrototypeName
TypedArray
TypedArrayGetSymbolSpecies
TypedArrayLength
TypedArrayName
TypedArrayPrototypeConstructor
TypedArrayPrototypeCopyWithin
TypedArrayPrototypeEntries
TypedArrayPrototypeEvery
TypedArrayPrototypeFill
TypedArrayPrototypeFilter
TypedArrayPrototypeFind
TypedArrayPrototypeFindIndex
TypedArrayPrototypeForEach
TypedArrayPrototypeIncludes
TypedArrayPrototypeIndexOf
TypedArrayPrototypeJoin
TypedArrayPrototypeKeys
TypedArrayPrototypeLastIndexOf
TypedArrayPrototypeMap
TypedArrayPrototypeReduce
TypedArrayPrototypeReduceRight
TypedArrayPrototypeReverse
TypedArrayPrototypeSet
TypedArrayPrototypeSlice
TypedArrayPrototypeSome
TypedArrayPrototypeSort
TypedArrayPrototypeSubarray
TypedArrayPrototypeSymbolIterator
TypedArrayPrototypeToLocaleString
TypedArrayPrototypeToString
TypedArrayPrototypeValues
URIErrorPrototypeConstructor
URIErrorPrototypeMessage
URIErrorPrototypeName
Uint16ArrayPrototypeBYTES_PER_ELEMENT
Uint16ArrayPrototypeConstructor
Uint32ArrayPrototypeBYTES_PER_ELEMENT
Uint32ArrayPrototypeConstructor
Uint8ArrayPrototypeBYTES_PER_ELEMENT
Uint8ArrayPrototypeConstructor
Uint8ClampedArrayPrototypeBYTES_PER_ELEMENT
Uint8ClampedArrayPrototypeConstructor
WeakMapPrototypeConstructor
WeakMapPrototypeSymbolToStringTag
WeakRef
WeakRefLength
WeakRefName
WeakRefPrototype
WeakRefPrototypeConstructor
WeakRefPrototypeDeref
WeakRefPrototypeSymbolToStringTag
WeakSetPrototypeConstructor
WeakSetPrototypeSymbolToStringTag
eval
makeSafe