Skip to content

Commit 7c49785

Browse files
madflowsxa
authored andcommitted
process: fix named report export
PR-URL: #41861 Fixes: #41774 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 7ed2c19 commit 7c49785

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/internal/bootstrap/pre_execution.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ function setupStacktracePrinterOnSigint() {
262262
function initializeReport() {
263263
const { report } = require('internal/process/report');
264264
ObjectDefineProperty(process, 'report', {
265-
enumerable: false,
265+
enumerable: true,
266266
configurable: true,
267267
get() {
268268
return report;

test/es-module/test-esm-process.mjs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import '../common/index.mjs';
22
import assert from 'assert';
3-
import process from 'process';
3+
import process, { report } from 'process';
44

55
assert.strictEqual(Object.prototype.toString.call(process), '[object process]');
66
assert(Object.getOwnPropertyDescriptor(process, Symbol.toStringTag).writable);
7+
assert(report);

0 commit comments

Comments
 (0)