Frozen Date objects?

Domenic Denicola domenic at domenicdenicola.com
Wed Jul 17 12:54:53 PDT 2013


From: Domenic Denicola [domenic at domenicdenicola.com]

> This seems like it would be a backward-compatible change.

Well, OK, this is actually just false: code that previously did `Object.freeze(dateObj); dateObj.setDays(3);` would no longer work as expected. I guess that might kill this idea?

Or can we hope that few enough people are freezing dates that this is an allowable break in backward-compat?


More information about the es-discuss mailing list