You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
The genuine args-Array in a setInterval or setTimeout call contains the function to be called and the delay. The arguments for the function start at the third position. By passing the arguments like this, the function invoked will get an array as argument that contains the function itself and the delay and the expected needed arguments.
zone.js/lib/zone-spec/fake-async-test.ts
Line 417 in e1df4bc
The genuine args-Array in a setInterval or setTimeout call contains the function to be called and the delay. The arguments for the function start at the third position. By passing the arguments like this, the function invoked will get an array as argument that contains the function itself and the delay and the expected needed arguments.
Sample:
setInterval((name) => console.log('my name:', name), 100, 'Emanuel')expected call:
('Emanuel') => console.log('my name:', 'Emanuel')actual call:
([function, 100, 'Emanuel') => console.log('my name:', [function, 100, 'Emanuel'])