Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit 09a594e

Browse files
committed
Use fresh object rather than modify a const
1 parent ca4b5f8 commit 09a594e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/decimal128.mts

+4-1
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,10 @@ function ensureFullySpecifiedConstructorOptions(
916916
function ensureFullySpecifiedToStringOptions(
917917
options?: ToStringOptions
918918
): FullySpecifiedToStringOptions {
919-
let opts = DEFAULT_TO_STRING_OPTIONS;
919+
let opts: FullySpecifiedToStringOptions = {
920+
format: "decimal",
921+
numDecimalDigits: undefined,
922+
};
920923

921924
if (undefined === options) {
922925
return opts;

0 commit comments

Comments
 (0)