Skip to content

Commit

Permalink
Fix case-insensitivity bug in object selection
Browse files Browse the repository at this point in the history
Synonyms weren't being traversed when picking object fields in non-strict
mode.
  • Loading branch information
hostilefork committed Oct 16, 2023
1 parent 2a2d0df commit 613bc0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/include/datatypes/sys-context.h
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ inline static REBVAR *MOD_VAR(Context(*) c, Symbol(const*) sym, bool strict) {
}
if (strict)
return nullptr;
sym = LINK(Synonym, sym);
} while (synonym != sym);
return nullptr;
}
Expand Down

0 comments on commit 613bc0d

Please sign in to comment.