text-codec-value.ts:2:13 - error SC1090: console.log of 'TextEncoder' values (TextEncoder instances have no inspect lowering yet) are not supported yet

  1 | const encoder = new TextEncoder();
  2 | console.log(encoder);
    |             ^~~~~~~
  3 | 

text-codec-value.ts:10:1 - error SC2020: 'TextEncoder.encodeInto' is part of the standard library types but has no scriptc lowering yet

   9 | new TextDecoder("utf-8", { fatal: true });
  10 | encoder.encodeInto("hello", new Uint8Array(10));
     | ^~~~~~~~~~~~~~~~~~
  11 | const forged = JSON.parse("{}") as TextDecoder;

  hint: TextEncoder instances can be stored, passed, and captured; encode(string) and encode() compile, while encodeInto and other members have no static lowering

text-codec-value.ts:17:5 - error SC2020: 'uninitialized lexical codec bindings' is part of the standard library types but has no scriptc lowering yet

  16 | var varEncoder = new TextEncoder();
  17 | let uninitializedDecoder: TextDecoder;
     |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  18 | function earlyVarCapture(): Uint8Array {

  hint: initialize let or const TextEncoder/TextDecoder bindings at their declaration

text-codec-value.ts:19:21 - error SC1030: the reference to 'localEncoder' above its 'var' declaration (a read there would be 'undefined', which the binding's type cannot hold — annotate it '| undefined' or move the declaration up) is not supported yet

  18 | function earlyVarCapture(): Uint8Array {
  19 |   const use = () => localEncoder.encode("x");
     |                     ^~~~~~~~~~~~
  20 |   const bytes = use();

text-codec-value.ts:33:15 - error SC1090: the reference to 'caseEncoder' (a binding form with no lowering) is not supported yet

  32 |     const Encoded = class {
  33 |       bytes = caseEncoder.encode("should fence");
     |               ^~~~~~~~~~~
  34 |     };

text-codec-value.ts:39:17 - error SC1090: codec bindings read from another switch clause before initialization is proven is not supported yet

  38 |     // @ts-expect-error -- dispatch can enter here while caseEncoder is in its TDZ
  39 |     console.log(caseEncoder.encode("should fence directly").length);
     |                 ^~~~~~~~~~~
  40 |     break;