Passing JS functions as implementations of Java functional interfaces is supported by GraalJS. Generated types *don't* support this.