seroval
Version:
Stringify JS values
27 lines (23 loc) • 673 B
text/typescript
export const ITERATOR = {};
export const ASYNC_ITERATOR = {};
export const enum SpecialReference {
MapSentinel = 0,
PromiseConstructor = 1,
PromiseResolve = 2,
PromiseReject = 3,
StreamConstructor = 4,
AbortSignalConstructor = 5,
AbortSignalAbort = 6,
}
/**
* Placeholder references
*/
export const SPECIAL_REFS: Record<SpecialReference, unknown> = {
[]: {},
[]: {},
[]: {},
[]: {},
[]: {},
[]: {},
[]: {},
};