angular/packages/compiler
Kristiyan Kostadinov 2b7bad5151 fix(compiler): invoke method-based tracking function with context (#54960)
Previously we assumed that if a `for` loop tracking function is in the form of `someMethod($index, $item)`, it will be pure so we didn't pass the parameter to bind the context to it. This appears to be risky, because we don't know if the method is trying to access `this`.

These changes play it safe by always binding method-based tracking functions.

Fixes #53628.

PR Close #54960
2024-03-21 22:08:41 -07:00
..
design fix(compiler): generate less code for advance instructions (#53845) 2024-01-09 12:27:58 -08:00
src fix(compiler): invoke method-based tracking function with context (#54960) 2024-03-21 22:08:41 -07:00
test fix(compiler): not catching for loop empty tracking expressions (#54772) 2024-03-11 09:17:43 -07:00
BUILD.bazel refactor(docs-infra): build adev application using local generated assets (#53511) 2023-12-20 14:49:31 -08:00
compiler.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
index.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
package.json build: update node.js engines version to be more explicate about v20 support (#52448) 2023-10-31 14:18:36 -07:00
public_api.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00