mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-21 05:50:55 +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.
7 lines
245 B
TypeScript
7 lines
245 B
TypeScript
// Stored ArrayBuffers and DataViews lower; Float16 accessors remain unsupported.
|
|
const buffer = new ArrayBuffer(16);
|
|
const view = new DataView(buffer);
|
|
view.setFloat16(0, 1.5);
|
|
console.log(view.getFloat16(0));
|
|
// End of the diagnostic fixture.
|