Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions dist/fortify.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/fortify.cjs.js.map

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions dist/fortify.es.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,18 @@ function cfg(obj, key) {
function clip(s) {
return String(s).slice(0, 80);
}
/** Best-effort error message, tolerant of non-Error throws. */
/**
* Best-effort error message, tolerant of non-Error throws. Must never throw itself: it runs inside
* init()'s catch and several sink catches, so a hostile error whose `message` is a throwing getter
* must not be able to re-throw from here and brick init(). Falls back to a constant.
*/
function emsg(e) {
return String(e?.message);
try {
return String(e?.message);
}
catch {
return 'unknown error';
}
}
/**
* Copy an object's own keys, dropping the three that could pollute a prototype. Deliberately not a
Expand Down
2 changes: 1 addition & 1 deletion dist/fortify.es.mjs.map

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions dist/fortify.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/fortify.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/fortify.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading