File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Runtime/PlatformAgnostic/Platform/Windows Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -411,11 +411,13 @@ Js::CharClassifier::CharClassifier(void)
411
411
bool isES6UnicodeModeEnabled = CONFIG_FLAG (ES6Unicode);
412
412
bool isFullUnicodeSupportAvailable = PlatformAgnostic::UnicodeText::IsExternalUnicodeLibraryAvailable ();
413
413
414
+ #if INTL_ICU || INTL_WINGLOB // don't assert in _no_icu builds (where there is no i18n library, by design)
414
415
AssertMsg (isFullUnicodeSupportAvailable, " Windows.Globalization needs to present with IUnicodeCharacterStatics support for Chakra.dll to work" );
415
416
if (!isFullUnicodeSupportAvailable)
416
417
{
417
418
Js::Throw::FatalInternalGlobalizationError ();
418
419
}
420
+ #endif
419
421
420
422
// If we're in ES6 mode, and we have full support for Unicode character classification
421
423
// from an external library, then use the ES6/Surrogate pair supported versions of the functions
Original file line number Diff line number Diff line change @@ -407,6 +407,7 @@ namespace PlatformAgnostic
407
407
{
408
408
return true ;
409
409
}
410
+ #if INTL_ICU || INTL_WINGLOB // don't assert in _no_icu builds (where there is no i18n library, by design)
410
411
else
411
412
{
412
413
// did not find winGlobCharApi
@@ -417,9 +418,10 @@ namespace PlatformAgnostic
417
418
{
418
419
// failed to initialize Windows Globalization
419
420
Js::Throw::FatalInternalGlobalizationError ();
421
+ #endif
420
422
}
421
423
422
- #ifndef DBG
424
+ #if (INTL_ICU || INTL_WINGLOB) && !defined( DBG)
423
425
return false ; // in debug builds, this is unreachable code
424
426
#endif
425
427
}, false );
You can’t perform that action at this time.
0 commit comments