Skip to content

Commit a0270d3

Browse files
committed
BigInt value
1 parent c6cba2a commit a0270d3

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

dist/elmahio.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/elmahio.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/elmahio.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/elmahio.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/elmahio.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,7 @@
10301030
obj.ExceptionSpecific = [{ key: "cause", value: error.cause }];
10311031
}
10321032
if (typeof error.cause === "bigint") {
1033-
obj.ExceptionSpecific = [{ key: "cause", value: "BigInt(\"" + parseInt(error.cause) + "\")" }];
1033+
obj.ExceptionSpecific = [{ key: "cause", value: error.cause.toString() + "n" }];
10341034
}
10351035
if (typeof error.cause === "symbol") {
10361036
obj.ExceptionSpecific = [{ key: "cause", value: error.cause.toString() }];
@@ -1043,7 +1043,7 @@
10431043
objEntries.push({ key: key, value: value });
10441044
}
10451045
if (typeof value === "bigint") {
1046-
objEntries.push({ key: key, value: "BigInt(\"" + parseInt(value) + "\")" });
1046+
objEntries.push({ key: key, value: error.cause.toString() + "n" });
10471047
}
10481048
if (typeof value === "symbol") {
10491049
objEntries.push({ key: key, value: value.toString() });

0 commit comments

Comments
 (0)