collection-iterator-helpers.ts:8:3 - error SC2020: 'IteratorObject<number, unknown, unknown>.return' is part of the standard library types but has no scriptc lowering yet

  7 | function close(it: IteratorObject<number>): void {
  8 |   it.return!();
    |   ^~~~~~~~~
  9 | }

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

collection-iterator-helpers.ts:12:1 - error SC2020: 'IteratorObject<number, undefined, unknown>.throw' is part of the standard library types but has no scriptc lowering yet

  11 | // throw() on a helper object (helpers have no throw method).
  12 | set.values().map((value) => value + 1).throw!(new Error("stop"));
     | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13 | // Each helper call must produce a diagnostic.

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