Skip to content

Commit ae534f7

Browse files
committed
fix: Don't reset decoding state between top-level ranges
1 parent 17b054b commit ae534f7

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/decode/decode.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,6 @@ class Decoder {
397397
parent.children.push(range);
398398
} else {
399399
this.#ranges.push(range);
400-
Object.assign(this.#rangeState, DEFAULT_RANGE_STATE);
401400
}
402401
}
403402

src/encode/encoder.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export class Encoder {
5656
this.#encodeOriginalScope(scope);
5757
});
5858
this.#info.ranges.forEach((range) => {
59-
Object.assign(this.#rangeState, DEFAULT_RANGE_STATE);
6059
this.#encodeGeneratedRange(range);
6160
});
6261

0 commit comments

Comments
 (0)