@jsenv/test 3.3.29 → 3.3.31

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.
@@ -5361,14 +5361,16 @@ const normalizeRuntimeError = (runtimeError) => {
5361
5361
  // the other properties are set by defineProperty so they are not enumerable
5362
5362
  // otherwise they would pollute the error displayed by Node.js
5363
5363
  const errorProxy = new Error(runtimeError.message);
5364
- const exception = createException(runtimeError);
5364
+ const exception = createException(runtimeError); // in case it was not done
5365
5365
  for (const ownPropertyName of Object.getOwnPropertyNames(exception)) {
5366
5366
  Object.defineProperty(errorProxy, ownPropertyName, {
5367
5367
  writable: true,
5368
5368
  configurable: true,
5369
- value: runtimeError[ownPropertyName],
5369
+ value: exception[ownPropertyName],
5370
5370
  });
5371
5371
  }
5372
+ errorProxy.name = exception.name;
5373
+ errorProxy.stack = exception.stack;
5372
5374
  return errorProxy;
5373
5375
  };
5374
5376
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/test",
3
- "version": "3.3.29",
3
+ "version": "3.3.31",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,12 +38,12 @@
38
38
  "dependencies": {
39
39
  "@c88/v8-coverage": "0.1.1",
40
40
  "@jsenv/abort": "4.3.0",
41
- "@jsenv/ast": "6.2.15",
42
- "@jsenv/exception": "1.0.2",
43
- "@jsenv/filesystem": "4.9.10",
41
+ "@jsenv/ast": "6.2.16",
42
+ "@jsenv/exception": "1.1.0",
43
+ "@jsenv/filesystem": "4.10.0",
44
44
  "@jsenv/github-check-run": "0.1.31",
45
45
  "@jsenv/humanize": "1.2.8",
46
- "@jsenv/plugin-supervisor": "1.5.16",
46
+ "@jsenv/plugin-supervisor": "1.5.17",
47
47
  "@jsenv/sourcemap": "1.2.23",
48
48
  "@jsenv/url-meta": "8.5.1",
49
49
  "@jsenv/urls": "2.5.2",
@@ -212,13 +212,15 @@ const normalizeRuntimeError = (runtimeError) => {
212
212
  // the other properties are set by defineProperty so they are not enumerable
213
213
  // otherwise they would pollute the error displayed by Node.js
214
214
  const errorProxy = new Error(runtimeError.message);
215
- const exception = createException(runtimeError);
215
+ const exception = createException(runtimeError); // in case it was not done
216
216
  for (const ownPropertyName of Object.getOwnPropertyNames(exception)) {
217
217
  Object.defineProperty(errorProxy, ownPropertyName, {
218
218
  writable: true,
219
219
  configurable: true,
220
- value: runtimeError[ownPropertyName],
220
+ value: exception[ownPropertyName],
221
221
  });
222
222
  }
223
+ errorProxy.name = exception.name;
224
+ errorProxy.stack = exception.stack;
223
225
  return errorProxy;
224
226
  };