File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
lib/Runtime/PlatformAgnostic/Platform/Windows Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -399,8 +399,7 @@ namespace PlatformAgnostic
399
399
Js::WindowsGlobalizationAdapter* globalizationAdapter = threadContext->GetWindowsGlobalizationAdapter ();
400
400
Js::DelayLoadWindowsGlobalization* globLibrary = threadContext->GetWindowsGlobalizationLibrary ();
401
401
HRESULT hr = globalizationAdapter->EnsureDataTextObjectsInitialized (globLibrary);
402
- // Failed to load windows.globalization.dll or jsintl.dll. No unicodeStatics support
403
- // in that case.
402
+ // Failed to load windows.globalization.dll or jsintl.dll. No unicodeStatics support in that case.
404
403
if (SUCCEEDED (hr))
405
404
{
406
405
auto winGlobCharApi = globalizationAdapter->GetUnicodeStatics ();
@@ -420,7 +419,9 @@ namespace PlatformAgnostic
420
419
Js::Throw::FatalInternalGlobalizationError ();
421
420
}
422
421
423
- return false ;
422
+ #ifndef DBG
423
+ return false ; // in debug builds, this is unreachable code
424
+ #endif
424
425
}, false );
425
426
}
426
427
You can’t perform that action at this time.
0 commit comments