All files / lib/internal idna.js

66.66% Statements 6/9
50% Branches 1/2
100% Functions 0/0
66.66% 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 1020x 20x 20x 20x 20x 20x        
'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 };
}