diff --git a/packages/core-js/internals/string-punycode-to-ascii.js b/packages/core-js/internals/string-punycode-to-ascii.js index 6ebdf7805412..4a1df6e0cee8 100644 --- a/packages/core-js/internals/string-punycode-to-ascii.js +++ b/packages/core-js/internals/string-punycode-to-ascii.js @@ -147,7 +147,7 @@ var encode = function (input) { var q = delta; var k = base; while (true) { - var t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); + var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias; if (q < t) break; var qMinusT = q - t; var baseMinusT = base - t; diff --git a/tests/eslint/eslint.config.js b/tests/eslint/eslint.config.js index 1df8fd28b3f8..5c15d0a6899e 100644 --- a/tests/eslint/eslint.config.js +++ b/tests/eslint/eslint.config.js @@ -91,7 +91,7 @@ const base = { // disallow unmodified loop conditions 'no-unmodified-loop-condition': ERROR, // disallow use of undeclared variables unless mentioned in a /*global */ block - 'no-undef': [ERROR], + 'no-undef': [ERROR, { typeof: false }], // disallow control flow statements in `finally` blocks 'no-unsafe-finally': ERROR, // avoid code that looks like two expressions but is actually one @@ -222,7 +222,7 @@ const base = { 'no-shadow-restricted-names': ERROR, // restrict what can be thrown as an exception 'no-throw-literal': ERROR, - // disallow initializing variables to undefined + // disallow initializing variables to `undefined` 'no-undef-init': ERROR, // disallow dangling underscores in identifiers 'no-underscore-dangle': ERROR,