a reactive (signals based) hypermedia web framework (wip) stormlightlabs.github.io/volt/
hypermedia frontend signals

fix: captureStackTrace error

Changed files
+4 -2
lib
src
core
+4 -2
lib/src/core/error.ts
··· 44 44 this.context = context; 45 45 this.timestamp = Date.now(); 46 46 47 - if (Error.captureStackTrace) { 48 - Error.captureStackTrace(this); 47 + // V8-specific feature 48 + // See: https://github.com/microsoft/TypeScript/issues/3926 49 + if ((Error as any).captureStackTrace) { 50 + (Error as any).captureStackTrace(this, VoltError); 49 51 } 50 52 } 51 53