notevil icon indicating copy to clipboard operation
notevil copied to clipboard

'Invalid Date' returned when 'new Date()' is evaluated

Open incubusknight opened this issue 4 years ago • 1 comments

Even though some other instantiation code works, like new Number(), when new Date() is evaluated it returns 'Invalid Date'.

For example:

notevil('new Date()'); // returns 'Invalid Date'

incubusknight avatar May 28 '20 13:05 incubusknight

workaround: notevil('new Date(null)');

luizinhoz avatar Sep 03 '21 21:09 luizinhoz