Skip to content

Commit

Permalink
Addressing code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MSLaguana committed May 15, 2017
1 parent 1113bfe commit 6b1731f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/Runtime/Library/JavascriptExceptionMetadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ namespace Js {

LPCUTF8 functionSource = sourceInfo->GetSource(_u("Jsrt::JsExperimentalGetAndClearExceptionWithMetadata"));

charcount_t startByteOffset;
charcount_t endByteOffset;
charcount_t startCharOffset;
charcount_t endCharOffset;
charcount_t startByteOffset = 0;
charcount_t endByteOffset = 0;
charcount_t startCharOffset = 0;
charcount_t endCharOffset = 0;


startCharOffset = cache->GetCharacterOffsetForLine(line, &startByteOffset);
Expand Down Expand Up @@ -143,7 +143,7 @@ namespace Js {
}
else
{
// This should not be possible
AssertMsg(FALSE, "Line ending logic out of sync between Js::JavascriptExceptionMetadata and JsUtil::LineOffsetCache::GetCharacterOffsetForLine");
return false;
}
}
Expand Down

0 comments on commit 6b1731f

Please sign in to comment.