Skip to content

Commit

Permalink
fix: properly copy PARSER_FEATURES instead of the reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduard Lavuš committed Oct 26, 2020
1 parent 971dde3 commit 2b1ebee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/language/syntax/rules/map/map.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function expectXToBeAMatchBase<T>(
...features: ParserFeature[]
): asserts expected is T {
const rules = Array.isArray(rule) ? rule : [rule];
const featuresSave = PARSER_FEATURES;
const featuresSave = { ...PARSER_FEATURES };
const save = stream.save();

for (const feature of features) {
Expand Down

0 comments on commit 2b1ebee

Please sign in to comment.