We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ed2c19 commit 7c49785Copy full SHA for 7c49785
lib/internal/bootstrap/pre_execution.js
@@ -262,7 +262,7 @@ function setupStacktracePrinterOnSigint() {
262
function initializeReport() {
263
const { report } = require('internal/process/report');
264
ObjectDefineProperty(process, 'report', {
265
- enumerable: false,
+ enumerable: true,
266
configurable: true,
267
get() {
268
return report;
test/es-module/test-esm-process.mjs
@@ -1,6 +1,7 @@
1
import '../common/index.mjs';
2
import assert from 'assert';
3
-import process from 'process';
+import process, { report } from 'process';
4
5
assert.strictEqual(Object.prototype.toString.call(process), '[object process]');
6
assert(Object.getOwnPropertyDescriptor(process, Symbol.toStringTag).writable);
7
+assert(report);
0 commit comments