diff options
author | cjihrig <cjihrig@gmail.com> | 2018-12-14 22:22:40 -0500 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-12-16 20:30:50 -0800 |
commit | 707b0a85344e16f38a6cded922df30361eaedd83 (patch) | |
tree | 84de938319f0d2dc407be220435102723d48fc10 /lib | |
parent | 18f2bf7f9bd183f7baf08a705035fc99580a2c40 (diff) | |
download | android-node-v8-707b0a85344e16f38a6cded922df30361eaedd83.tar.gz android-node-v8-707b0a85344e16f38a6cded922df30361eaedd83.tar.bz2 android-node-v8-707b0a85344e16f38a6cded922df30361eaedd83.zip |
tools: enable no-useless-constructor lint rule
This commit enables ESLint's no-useless-constructor rule. Note
that the documentation examples that only include constructor
calls were left in tact.
PR-URL: https://github.com/nodejs/node/pull/25055
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/perf_hooks.js | 2 | ||||
-rw-r--r-- | lib/v8.js | 4 |
2 files changed, 0 insertions, 6 deletions
diff --git a/lib/perf_hooks.js b/lib/perf_hooks.js index 9b40c8f977..cb1640ef9b 100644 --- a/lib/perf_hooks.js +++ b/lib/perf_hooks.js @@ -142,8 +142,6 @@ function getMilestoneTimestamp(milestoneIdx) { } class PerformanceNodeTiming { - constructor() {} - get name() { return 'node'; } @@ -172,10 +172,6 @@ class DefaultSerializer extends Serializer { } class DefaultDeserializer extends Deserializer { - constructor(buffer) { - super(buffer); - } - _readHostObject() { const typeIndex = this.readUint32(); const ctor = arrayBufferViewTypes[typeIndex]; |