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

Function assertNormalize

lib.commonjs/utils/errors.js:215–219  ·  view source on GitHub ↗

* Throws if the normalization %%form%% is not supported.

(form)

Source from the content-addressed store, hash-verified

213 * Throws if the normalization %%form%% is not supported.
214 */
215function assertNormalize(form) {
216 assert(_normalizeForms.indexOf(form) >= 0, "platform missing String.prototype.normalize", "UNSUPPORTED_OPERATION", {
217 operation: "String.prototype.normalize", info: { form }
218 });
219}
220exports.assertNormalize = assertNormalize;
221/**
222 * 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