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.
26 lines
1.4 KiB
Plaintext
26 lines
1.4 KiB
Plaintext
intl-segmenter.ts:2:1 - error SC2020: 'Intl.Segmenter locale negotiation' is part of the standard library types but has no scriptc lowering yet
|
|
|
|
1 | // The native implementation covers default Unicode grapheme segmentation.
|
|
2 | new Intl.Segmenter("en-US");
|
|
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
3 | new Intl.Segmenter(undefined, { granularity: "word" });
|
|
|
|
hint: omit the locale or pass undefined for default Unicode grapheme segmentation
|
|
|
|
intl-segmenter.ts:3:31 - error SC2020: 'Intl.Segmenter options' is part of the standard library types but has no scriptc lowering yet
|
|
|
|
2 | new Intl.Segmenter("en-US");
|
|
3 | new Intl.Segmenter(undefined, { granularity: "word" });
|
|
| ^~~~~~~~~~~~~~~~~~~~~~~
|
|
4 | new Intl.Segmenter(undefined, { granularity: "sentence" });
|
|
|
|
hint: the native segmenter supports default options and { granularity: "grapheme" }; word and sentence segmentation remain unsupported
|
|
|
|
intl-segmenter.ts:4:31 - error SC2020: 'Intl.Segmenter options' is part of the standard library types but has no scriptc lowering yet
|
|
|
|
3 | new Intl.Segmenter(undefined, { granularity: "word" });
|
|
4 | new Intl.Segmenter(undefined, { granularity: "sentence" });
|
|
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
5 | // End of the diagnostic fixture.
|
|
|
|
hint: the native segmenter supports default options and { granularity: "grapheme" }; word and sentence segmentation remain unsupported |