MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / assertNormalize

Function assertNormalize

src.ts/utils/errors.ts:773–777  ·  view source on GitHub ↗
(form: string)

Source from the content-addressed store, hash-verified

771 * Throws if the normalization %%form%% is not supported.
772 */
773export function assertNormalize(form: string): void {
774 assert(_normalizeForms.indexOf(form) >= 0, "platform missing String.prototype.normalize", "UNSUPPORTED_OPERATION", {
775 operation: "String.prototype.normalize", info: { form }
776 });
777}
778
779/**
780 * Many classes use file-scoped values to guard the constructor,

Callers

nothing calls this directly

Calls 1

assertFunction · 0.70

Tested by

no test coverage detected