@jsenv/core 28.4.2 → 28.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -277,6 +277,7 @@ window.__supervisor__ = (() => {
277
277
 
278
278
  const getErrorStackWithoutErrorMessage = error => {
279
279
  let stack = error.stack;
280
+ if (!stack) return "";
280
281
  const messageInStack = `${error.name}: ${error.message}`;
281
282
 
282
283
  if (stack.startsWith(messageInStack)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "28.4.2",
3
+ "version": "28.4.3",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -237,6 +237,7 @@ window.__supervisor__ = (() => {
237
237
 
238
238
  const getErrorStackWithoutErrorMessage = (error) => {
239
239
  let stack = error.stack
240
+ if (!stack) return ""
240
241
  const messageInStack = `${error.name}: ${error.message}`
241
242
  if (stack.startsWith(messageInStack)) {
242
243
  stack = stack.slice(messageInStack.length)