Browse Source

doc: remove obsolete comment in isError() example

One of the util.isError() examples states that a harmony flag
is required. As of v6.0.0, this is no longer true. This commit
removes the out of date reference.

Refs: https://github.com/nodejs/node/pull/5414
PR-URL: https://github.com/nodejs/node/pull/6486
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
process-exit-stdio-flushing
cjihrig 9 years ago
committed by James M Snell
parent
commit
d09c972fde
  1. 1
      doc/api/util.md

1
doc/api/util.md

@ -341,7 +341,6 @@ possible to obtain an incorrect result when the `object` argument manipulates
`@@toStringTag`. `@@toStringTag`.
```js ```js
// This example requires the `--harmony-tostring` flag
const util = require('util'); const util = require('util');
const obj = { name: 'Error', message: 'an error occurred' }; const obj = { name: 'Error', message: 'an error occurred' };

Loading…
Cancel
Save