I\'m trying to subclass/extend the native Date object, without modifying the native object itself.
I\'ve tried this:
var util = require(\'util\')
In ES6, it will be possible to subclass built-in constructors (Array, Date, and Error) - reference
Problem is there is no way to do this with current ES5 engines, as Babel indicates and will require a browser with native ES6 support.
The current ES6 browser support for subclassing is pretty weak / non-existant as of today (2015-04-15).