0a5ab058a6
- Angular 12 application with PrimeNG components - 5 existing Cypress e2e test suites - SCSS styling with BEM naming convention - i18n support (10 languages) - Leaflet map integration - Complete component hierarchy and routing structure This baseline will be used for Angular → React migration.
19 lines
380 B
JavaScript
19 lines
380 B
JavaScript
'use strict';
|
|
|
|
/** @type {import('.').AsyncFunctionConstructor | false} */
|
|
var cached;
|
|
|
|
/** @type {import('.')} */
|
|
module.exports = function getAsyncFunction() {
|
|
if (typeof cached === 'undefined') {
|
|
try {
|
|
// eslint-disable-next-line no-new-func
|
|
cached = Function('return async function () {}')().constructor;
|
|
} catch (e) {
|
|
cached = false;
|
|
}
|
|
}
|
|
return cached;
|
|
};
|
|
|