We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80ddeaf commit 3d53cc4Copy full SHA for 3d53cc4
punycode.js
@@ -342,7 +342,7 @@ const encode = function(input) {
342
if (currentValue < n && ++delta > maxInt) {
343
error('overflow');
344
}
345
- if (currentValue == n) {
+ if (currentValue === n) {
346
// Represent delta as a generalized variable-length integer.
347
let q = delta;
348
for (let k = base; /* no condition */; k += base) {
@@ -359,7 +359,7 @@ const encode = function(input) {
359
360
361
output.push(stringFromCharCode(digitToBasic(q, 0)));
362
- bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
+ bias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength);
363
delta = 0;
364
++handledCPCount;
365
0 commit comments