mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
doc: add unreachable code on events example
PR-URL: https://github.com/nodejs/node/pull/32364 Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
1 parent
567e671bd2
commit
b567a63cc0
1 file changed
+1
@@ -912,6 +912,7 @@ const { on, EventEmitter } = require('events');
|
||||
// if concurrent execution is required.
|
||||
console.log(event); // prints ['bar'] [42]
|
||||
}
|
||||
// Unreachable here
|
||||
})();
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user