Skip to content

Commit

Permalink
Update features.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Clayblockunova authored Jul 16, 2024
1 parent e772b70 commit 9b23cf4
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/lib/features.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,21 @@ var featureInfos =
return available;
},
},
ASYNC_FUNCTION:
{
description: 'Support for async functions, which return `Promise` object.',
check:
function ()
{
try
{
Function('return async function(){}');
return true;
}
catch (error)
{ }
},
},
ARROW:
{
description: 'Support for arrow functions.',
Expand Down Expand Up @@ -506,6 +521,16 @@ var featureInfos =
return available;
},
},
JAPANESE_INFINITY:
{
description: 'Japanese string representation of Infinity ended with "∞".',
check:
function ()
{
var available = Infinity.toLocaleString('ja').slice(-1) === '∞';
return available;
},
},
LOCALE_INFINITY:
{
description: 'Language sensitive string representation of Infinity as "∞".',
Expand Down

0 comments on commit 9b23cf4

Please sign in to comment.