If you subscribe to an event using numRequested as a string, it will not trigger the lastevent due to strict equality comparison, but it will still emit the specified number of events.
To avoid misunderstanding, it's better to check the type of numRequested, and either throw an error or try to parse it as a number.
Small Bug Report
Description
If you subscribe to an event using
numRequested
as a string, it will not trigger thelastevent
due to strict equality comparison, but it will still emit the specified number of events. To avoid misunderstanding, it's better to check the type ofnumRequested
, and either throw an error or try to parse it as a number.Version
3.2.2