mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-22 05:59:31 +08:00
* Expand static three.js workflows and host integration * Preserve JavaScript class state in static three.js workflows * Preserve inferred JavaScript behavior across static workflows * Preserve inferred callables and native compatibility boundaries * Retain annotated JavaScript factory exports and bootstrap-safe call spreads * Preserve Buffer and child callback identities in static packages * Clarify JavaScript symbol spread support
7 lines
392 B
TypeScript
7 lines
392 B
TypeScript
for (const form of ['NFC', 'NFD', 'NFKC', 'NFKD']) {
|
|
console.log(form, 'e\u0301 Å ffi ① 한 😀'.normalize(form));
|
|
}
|
|
console.log('default', 'e\u0301'.normalize(), 'e\u0301'.normalize(undefined));
|
|
console.log('empty', ''.normalize(), 'already', 'café'.normalize());
|
|
try { 'hello'.normalize('bad'); } catch (error) { if (error instanceof Error) console.log(error.name, error.message); }
|