angular/packages/compiler-cli/ngcc/test/host
JoostK 66e9970691 feat(ngcc): support __read helper as used by TypeScript 4.2 (#41201)
This commit complements the support for the `__spreadArray` helper that
was added in microsoft/TypeScript#41523. The prior helpers `__spread`
and `__spreadArrays` used the `__read` helper internally, but the helper
is now emitted as an argument to `__spreadArray` so ngcc now needs to
support evaluating it statically. The real implementation of `__read`
reads an iterable into an array, but for ngcc's static evaluation
support it is sufficient to only deal with arrays as is. Additionally,
the optional `n` parameter is not supported as that is only emitted for
array destructuring syntax, which ngcc does not have to support.

PR Close #41201
2021-03-16 11:06:31 -07:00
..
commonjs_host_import_helper_spec.ts test(compiler-cli): move testing utils to separate package (#39594) 2020-11-17 11:59:56 -08:00
commonjs_host_spec.ts feat(ngcc): support __read helper as used by TypeScript 4.2 (#41201) 2021-03-16 11:06:31 -07:00
esm5_host_import_helper_spec.ts test(compiler-cli): move testing utils to separate package (#39594) 2020-11-17 11:59:56 -08:00
esm5_host_spec.ts feat(ngcc): support __read helper as used by TypeScript 4.2 (#41201) 2021-03-16 11:06:31 -07:00
esm2015_host_import_helper_spec.ts test(compiler-cli): move testing utils to separate package (#39594) 2020-11-17 11:59:56 -08:00
esm2015_host_spec.ts test(compiler-cli): move testing utils to separate package (#39594) 2020-11-17 11:59:56 -08:00
umd_host_import_helper_spec.ts test(compiler-cli): move testing utils to separate package (#39594) 2020-11-17 11:59:56 -08:00
umd_host_spec.ts feat(ngcc): support __read helper as used by TypeScript 4.2 (#41201) 2021-03-16 11:06:31 -07:00
util.ts perf(compiler-cli): detect semantic changes and their effect on an incremental rebuild (#40947) 2021-03-08 08:41:19 -08:00