All files / lib/internal idna.js

66.67% Statements 6/9
50% Branches 1/2
100% Functions 0/0
66.67% Lines 6/9

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10136x 136x 136x 136x 136x 136x        
'use strict';
 
if (internalBinding('config').hasIntl) {
  const { toASCII, toUnicode } = internalBinding('icu');
  module.exports = { toASCII, toUnicode };
} else {
  const { domainToASCII, domainToUnicode } = require('internal/url');
  module.exports = { toASCII: domainToASCII, toUnicode: domainToUnicode };
}