dataview.ts:9:7 - error SC2001: values of type 'ArrayBuffer' cannot be compiled yet (supported: number, string, boolean, arrays, Maps, Sets, RegExp, functions, classes, records, unions of those, and 'unknown')

   8 | // '.buffer' only compiles inside new DataView(x.buffer, ...).
   9 | const escaped = buf.buffer;
     |       ^~~~~~~
  10 | 

dataview.ts:9:17 - error SC1090: '.buffer' outside new DataView(x.buffer, ...) — scriptc typed arrays own their storage: no free-standing ArrayBuffer value exists, and slice()/subarray() copy is not supported yet

   8 | // '.buffer' only compiles inside new DataView(x.buffer, ...).
   9 | const escaped = buf.buffer;
     |                 ^~~~~~~~~~
  10 | 

dataview.ts:12:7 - error SC2001: values of type 'bigint' cannot be compiled yet (supported: number, string, boolean, arrays, Maps, Sets, RegExp, functions, classes, records, unions of those, and 'unknown')

  11 | // bigint values have no representation — only Number(view.getBigUint64(...)).
  12 | const big = view.getBigUint64(0);
     |       ^~~
  13 | 

dataview.ts:12:13 - error SC2020: '.getBigUint64 outside Number(...)' is part of the standard library types but has no scriptc lowering yet

  11 | // bigint values have no representation — only Number(view.getBigUint64(...)).
  12 | const big = view.getBigUint64(0);
     |             ^~~~~~~~~~~~~~~~~~~~
  13 | 

  hint: bigint values have no representation — Number(view.getBigUint64(offset, littleEndian?)) is the lowered form

dataview.ts:15:7 - error SC2001: values of type 'ArrayBuffer' cannot be compiled yet (supported: number, string, boolean, arrays, Maps, Sets, RegExp, functions, classes, records, unions of those, and 'unknown')

  14 | // The constructor wants a typed array's own '.buffer'.
  15 | const ab = new ArrayBuffer(8);
     |       ^~
  16 | const direct = new DataView(ab);

dataview.ts:15:12 - error SC2020: 'new ArrayBuffer' is part of the standard library types but has no scriptc lowering yet

  14 | // The constructor wants a typed array's own '.buffer'.
  15 | const ab = new ArrayBuffer(8);
     |            ^~~~~~~~~~~~~~~~~~
  16 | const direct = new DataView(ab);

  hint: the type checker sees the full standard library, but only the supported surface compiles (https://scriptc.dev/limitations)

dataview.ts:16:29 - error SC2020: 'new DataView over this buffer expression' is part of the standard library types but has no scriptc lowering yet

  15 | const ab = new ArrayBuffer(8);
  16 | const direct = new DataView(ab);
     |                             ^~
  17 | 

  hint: views compile over a typed array's own storage — new DataView(x.buffer, byteOffset?, byteLength?) where x is a Uint8Array/Uint32Array/Float32Array/Buffer value; free-standing ArrayBuffers have no representation