Skip to content

Commit

Permalink
fix(ses,errors): makeError freezes returned error
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Mar 18, 2024
1 parent 772e461 commit 640d1c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ses/src/error/assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ const makeError = (
tagError(error, errorName);
}
// The next line is a particularly fruitful place to put a breakpoint.
return error;
return freeze(error);
};
freeze(makeError);

Expand Down

0 comments on commit 640d1c0

Please sign in to comment.