diff --git a/packages/core/src/render3/styling/host_instructions_queue.ts b/packages/core/src/render3/styling/host_instructions_queue.ts index 07d01cd94a..a691397fb4 100644 --- a/packages/core/src/render3/styling/host_instructions_queue.ts +++ b/packages/core/src/render3/styling/host_instructions_queue.ts @@ -65,7 +65,7 @@ export function flushQueue(context: StylingContext): void { i += HostInstructionsQueueIndex.Size) { const fn = buffer[i + HostInstructionsQueueIndex.InstructionFnOffset] as Function; const args = buffer[i + HostInstructionsQueueIndex.ParamsOffset] as any[]; - fn(...args); + fn.apply(this, args); } buffer.length = HostInstructionsQueueIndex.ValuesStartPosition; }