| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e79f540 commit 11dd9a6
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,7 +21,8 @@ | |||
| 21 | 21 | */ | |
| 22 | 22 | ||
| 23 | 23 | // TODO(trott): enable ESLint | |
| 24 | - /* eslint-disable */ | ||
| 24 | + /* eslint-disable getter-return, no-restricted-syntax, | ||
| 25 | + node-core/prefer-primordials */ | ||
| 25 | 26 | ||
| 26 | 27 | 'use strict'; | |
| 27 | 28 | const FS = require('fs'); | |
@@ -375,10 +376,8 @@ function createRepl(inspector) { | |||
| 375 | 376 | ||
| 376 | 377 | [util.inspect.custom](depth, { stylize }) { | |
| 377 | 378 | const { startTime, endTime } = this.data; | |
| 378 | - return stylize( | ||
| 379 | - `[Profile ${endTime - startTime}${String.fromCharCode(956)}s]`, | ||
| 380 | - 'special' | ||
| 381 | - ); | ||
| 379 | + const MU = String.fromChar(956); | ||
| 380 | + return stylize(`[Profile ${endTime - startTime}${MU}s]`, 'special'); | ||
| 382 | 381 | } | |
| 383 | 382 | ||
| 384 | 383 | save(filename = 'node.cpuprofile') { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments