mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Previously we were looking for a global factory call that looks like:
```ts
(factory((global.ng = global.ng || {}, global.ng.common = {}), global.ng.core))"
```
but in some cases it looks like:
```ts
(global = global || self, factory((global.ng = global.ng || {}, global.ng.common = {}), global.ng.core))"
```
Note the `global = global || self` at the start of the statement.
This commit makes the test when finding the global factory
function call resilient to being in a comma list.
PR Close #32709
|
||
|---|---|---|
| .. | ||
| commonjs_rendering_formatter_spec.ts | ||
| dts_renderer_spec.ts | ||
| esm5_rendering_formatter_spec.ts | ||
| esm_rendering_formatter_spec.ts | ||
| renderer_spec.ts | ||
| umd_rendering_formatter_spec.ts | ||