Skip to content

Commit 356972a

Browse files
committed
fixup! test: remove unnecessary process.exit calls from test files
1 parent d0a22f9 commit 356972a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

benchmark/buffers/buffer-transcode.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ const common = require('../common.js');
33
const assert = require('node:assert');
44
const buffer = require('node:buffer');
55

6+
const hasIntl = !!process.config.variables.v8_enable_i18n_support;
67
const encodings = ['latin1', 'ascii', 'ucs2', 'utf8'];
78

8-
if (!common.hasIntl) {
9-
common.skip('`transcode` is only available on platforms that support i18n`');
9+
if (!hasIntl) {
10+
console.log('Skipping: `transcode` is only available on platforms that support i18n`');
11+
return;
1012
}
1113

1214
const bench = common.createBenchmark(main, {

0 commit comments

Comments
 (0)