vue-simple-range-slider
Version:
Change Your numeric value or numeric range value with dragging handles
28 lines (20 loc) • 400 B
JavaScript
/*
MIT License http://www.opensource.org/licenses/mit-license.php
*/
;
class ErrorObjectSerializer {
constructor(Type) {
this.Type = Type;
}
serialize(obj, { write }) {
write(obj.message);
write(obj.stack);
}
deserialize({ read }) {
const err = new this.Type();
err.message = read();
err.stack = read();
return err;
}
}
module.exports = ErrorObjectSerializer;