Skip to content

Commit

Permalink
Changed condition checking for strictmode
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiThePoodle committed Jan 13, 2022
1 parent 7cafad9 commit e1847f4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ protected override void EndProcessing()
Statistics stat = _statistics[propertyName];
if (stat.count == 0 && Property != null)
{
if (Context.EngineSessionState.CurrentScope.StrictModeVersion?.Major != 0)
if (Context.IsStrictVersion(2))
{
string errorId = (IsMeasuringGeneric) ? "GenericMeasurePropertyNotFound" : "TextMeasurePropertyNotFound";
WritePropertyNotFoundError(propertyName, errorId);
Expand Down

0 comments on commit e1847f4

Please sign in to comment.