Fix global variable leaks.

At line 534 of lib/date.js, match variable is leaking.