1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
Description: import fix from 2.0.1
Needed for node-chai
Author: Yadd <yadd@debian.org>
Forwarded: not-needed
Last-Update: 2025-08-24
--- a/mod.ts
+++ b/mod.ts
@@ -20,7 +20,8 @@
constructor(public message = 'Unspecified AssertionError', props?: T, ssf?: Function) {
super(message)
- if (canElideFrames && ssf) startStackFrames.set(this, ssf)
+ // @ts-ignore
+ if (canElideFrames) Error.captureStackTrace(this, ssf || AssertionError);
for (const key in props) {
if (!(key in this)) {
// @ts-ignore
|