created by Brian LeRoux & Andrew Lunny. sparodically uncurated by David Trejo.

2011 09 24 Date silently accepts anything

    d = new Date("couldn't you please throw an exception here instead?");

    // No! You get the joy of discovering this error somewhere unrelated,
    // much later; at the point of use, in an innocent part of your code:

    d.getTime(); // => NaN

johan || @ecmanaut

Fork me on GitHub