File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -95,10 +95,10 @@ namespace Js {
95
95
96
96
LPCUTF8 functionSource = sourceInfo->GetSource (_u (" Jsrt::JsExperimentalGetAndClearExceptionWithMetadata" ));
97
97
98
- charcount_t startByteOffset;
99
- charcount_t endByteOffset;
100
- charcount_t startCharOffset;
101
- charcount_t endCharOffset;
98
+ charcount_t startByteOffset = 0 ;
99
+ charcount_t endByteOffset = 0 ;
100
+ charcount_t startCharOffset = 0 ;
101
+ charcount_t endCharOffset = 0 ;
102
102
103
103
104
104
startCharOffset = cache->GetCharacterOffsetForLine (line, &startByteOffset);
@@ -143,7 +143,7 @@ namespace Js {
143
143
}
144
144
else
145
145
{
146
- // This should not be possible
146
+ AssertMsg ( FALSE , " Line ending logic out of sync between Js::JavascriptExceptionMetadata and JsUtil::LineOffsetCache::GetCharacterOffsetForLine " );
147
147
return false ;
148
148
}
149
149
}
You can’t perform that action at this time.
0 commit comments