ES6 refactor of data types (#6072)
- Use let, const and property shorthands. - The data types are not changed to ES6 classes because it should be possible to call them without `new`. - Use function declarations so the functions (which are classes) have a name - Simplify `inherits` function and move it to utils.js The manual style may be a bit more verbose but it comes closer to true ES6 classes because the functions are named and not dynamically created - Name methods - Fix bugs in dialect data types where constructor arguments were not applied when called without `new` - Remove unneeded code
Showing
with
247 additions
and
156 deletions
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
lib/utils/inherits.js
0 → 100644
-
Please register or sign in to post a comment