-
-
Notifications
You must be signed in to change notification settings - Fork 437
Open
Labels
Description
Same issue reported for bigints #2509 also exists Date objects.
It creates invalid code at best, and creates security issues at worst when the date object comparison is used for auth-related stuff.
const now = new Date();
const later = new Date(now.getTime() + Math.ceil(Math.random() * 1000 - Math.random() * 1000) );
const a = now < later ? 'a' : 'b';Reactions are currently unavailable