Skip to content

Commit

Permalink
update definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Clayblockunova committed Sep 24, 2024
1 parent 1ec0c61 commit e283128
Showing 1 changed file with 9 additions and 19 deletions.
28 changes: 9 additions & 19 deletions test/helpers/feature-emulation.helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@
case 'ar':
number = Number(this);
if (isNaN(number))
returnValue = 'ليس\xa0رقم';
returnValue = context.arabicNaNString || 'ليس';
else if (context.shortLocales)
{
returnValue =
Expand All @@ -1025,7 +1025,7 @@
case 'ar-td':
number = Number(this);
if (isNaN(number))
returnValue = 'ليس\xa0رقم';
returnValue = context.arabicNaNString || 'ليس';
else
{
returnValue =
Expand All @@ -1045,6 +1045,7 @@
LOCALE_NUMERALS_EXT:
function ()
{
this.arabicNaNString = 'ليس\xa0رقم';
registerNumberToLocaleStringAdapter
(
this,
Expand All @@ -1054,12 +1055,6 @@
var number;
switch (locale)
{
case 'ar':
case 'ar-td':
number = Number(this);
if (isNaN(number))
returnValue = 'ليس\xa0رقم';
break;
case 'bn':
number = Number(this);
if (!isNaN(number))
Expand Down Expand Up @@ -1117,6 +1112,7 @@
LOCALE_NUMERALS_IE11_WIN7_8:
function ()
{
this.arabicNaNString = 'ليس\xa0برقم';
registerNumberToLocaleStringAdapter
(
this,
Expand All @@ -1128,18 +1124,12 @@
{
case 'ar':
case 'ar-td':
number = Number(this);
if (isNaN(number))
returnValue = 'ليس\xa0برقم';
else
switch (+this) // In Internet Explorer 9, +this is different from this.
{
switch (+this) // In Internet Explorer 9, +this is different from this.
{
case Infinity:
return '+لا\xa0نهاية';
case -Infinity:
return '-لا\xa0نهاية';
}
case Infinity:
return '+لا\xa0نهاية';
case -Infinity:
return '-لا\xa0نهاية';
}
break;
case 'cz':
Expand Down

0 comments on commit e283128

Please sign in to comment.