Skip to content

Commit b8e7079

Browse files
committed
Fix unreachable code error.
1 parent 84f3df4 commit b8e7079

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/Runtime/PlatformAgnostic/Platform/Windows/UnicodeText.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,7 @@ namespace PlatformAgnostic
399399
Js::WindowsGlobalizationAdapter* globalizationAdapter = threadContext->GetWindowsGlobalizationAdapter();
400400
Js::DelayLoadWindowsGlobalization* globLibrary = threadContext->GetWindowsGlobalizationLibrary();
401401
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.
404403
if (SUCCEEDED(hr))
405404
{
406405
auto winGlobCharApi = globalizationAdapter->GetUnicodeStatics();
@@ -420,7 +419,9 @@ namespace PlatformAgnostic
420419
Js::Throw::FatalInternalGlobalizationError();
421420
}
422421

423-
return false;
422+
#ifndef DBG
423+
return false; // in debug builds, this is unreachable code
424+
#endif
424425
}, false);
425426
}
426427

0 commit comments

Comments
 (0)