Your method above won't support arguments to the constructor - my code supports zero, 1 and 7 arguments.
@mgg1010 sorry if I'm missing the point, but you can pass as many arguments as you want
exports.constructor = function(foo, bar, baz) { return new Date(foo, bar, baz); }
@graf started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@mgg1010 sorry if I'm missing the point, but you can pass as many arguments as you want