mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-02 08:35:07 +08:00
- Add shared ArrayBuffer storage and native Unicode grapheme segmentation. - Preserve builtin modules, globals, and byte views across JavaScript bindings. - Compile package initialization expressions and optional native callables.
6 lines
254 B
TypeScript
6 lines
254 B
TypeScript
// The native implementation covers default Unicode grapheme segmentation.
|
|
new Intl.Segmenter("en-US");
|
|
new Intl.Segmenter(undefined, { granularity: "word" });
|
|
new Intl.Segmenter(undefined, { granularity: "sentence" });
|
|
// End of the diagnostic fixture.
|