maps-surface.ts:13:12 - error SC2020: '.keys() outside an immediate array spread' is part of the standard library types but has no scriptc lowering yet

  12 | // on the spot ([...m.keys()]); a stored iterator would need the protocol.
  13 | const ks = m.keys();
     |            ^~~~~~~~
  14 | const vs = m.values();

  hint: iterator objects have no lowering — drain it into an array where it is made: [...m.keys()]

maps-surface.ts:14:12 - error SC2020: '.values() outside an immediate array spread' is part of the standard library types but has no scriptc lowering yet

  13 | const ks = m.keys();
  14 | const vs = m.values();
     |            ^~~~~~~~~~
  15 | const es = m.entries();

  hint: iterator objects have no lowering — drain it into an array where it is made: [...m.values()]

maps-surface.ts:15:12 - error SC2020: '.entries() outside an immediate array spread' is part of the standard library types but has no scriptc lowering yet

  14 | const vs = m.values();
  15 | const es = m.entries();
     |            ^~~~~~~~~~~
  16 | 

  hint: iterator objects have no lowering — drain it into an array where it is made: [...m.entries()]

maps-surface.ts:23:1 - error SC2020: 'chained Map method calls' is part of the standard library types but has no scriptc lowering yet

  22 | // set() is declared void (not the JS `this`), so chaining is a type error.
  23 | m.set("a", 1).set("b", 2);
     | ^~~~~~~~~~~~~
  24 | 

  hint: the lowered set() produces no value — call each set(k, v) as its own statement

maps-surface.ts:26:11 - error SC2011: values of type '(v: number, k: string, theMap: Map<string, number>) => void' have no static representation but run in the embedded dynamic engine, which this build does not include

  25 | // The forEach callback receives (value, key) — no third map parameter.
  26 | m.forEach((v, k, theMap) => console.log(k, v));
     |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  27 | 

  hint: build with --dynamic to run these values in the embedded engine (adds ~620KB to the binary), or restate the type inside the static surface (https://scriptc.dev/limitations describes the boundary)