function assertIsStrictRecursively(scope, expected) {
    assert.strictEqual(scope.isStrict, expected);

    scope.childScopes.forEach(childScope => {
        assertIsStrictRecursively(childScope, expected);
    });
}
Asserts `isStrict` property value for the given scope and all its descendants.
@param {Scope} scope The scope to check.
@param {boolean} expected The expected value for `isStrict` property.
@throws {AssertionError} If `isStrict` property value of `scope` or of
     any of its descendant scopes doesn't match `expected`.
@returns {void}