Skip to content

Commit

Permalink
fixup! fix(ses): avoid holding deep stacks strongly
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Mar 21, 2023
1 parent e85d397 commit 948a503
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/ses/src/error/note-log-args.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,10 @@ const spliceAfter = (prev, selfCell) => {
/**
* @template Data
* @param {DoublyLinkedCell<Data>} cell
* Must be a non-sigil part of a ring, and therefore non-self-linked
* No-op if the cell is self-linked.
*/
const spliceOut = cell => {
const { prev, next } = cell;
if (prev === cell || next === cell) {
throw TypeError('Expected non-self-linked cell');
}
prev.next = next;
next.prev = prev;
cell.prev = cell;
Expand Down

0 comments on commit 948a503

Please sign in to comment.