Skip to content

Commit c07e6da

Browse files
committed
Use setPrototypeOf instead of util.inherits
1 parent d9e4011 commit c07e6da

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

JavaScript/9-collector.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
'use strict';
22

3-
const util = require('util');
4-
5-
function Collector() {
6-
}
7-
8-
util.inherits(Collector, Function);
3+
function Collector() {}
94

105
const collect = (expected) => {
116
const collector = (key, value) => {

0 commit comments

Comments
 (0)