mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
doc: "util" is not needed to extend ES6 classes
PR-URL: https://github.com/nodejs/node/pull/9737 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Italo A. Casas <me@italoacasas.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
2486273c0e
commit
aa1333ff3b
1 file changed
-1
@@ -180,7 +180,6 @@ stream.write('It works!'); // Received data: "It works!"
|
||||
ES6 example using `class` and `extends`
|
||||
|
||||
```js
|
||||
const util = require('util');
|
||||
const EventEmitter = require('events');
|
||||
|
||||
class MyStream extends EventEmitter {
|
||||
|
||||
Reference in new issue
Block a user