node/test/es-module/test-esm-process.mjs
madflow 60c71f35ee process: fix named report export
PR-URL: https://github.com/nodejs/node/pull/41861
Fixes: https://github.com/nodejs/node/issues/41774
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2022-02-23 18:37:55 +02:00

8 lines
279 B
JavaScript

import '../common/index.mjs';
import assert from 'assert';
import process, { report } from 'process';
assert.strictEqual(Object.prototype.toString.call(process), '[object process]');
assert(Object.getOwnPropertyDescriptor(process, Symbol.toStringTag).writable);
assert(report);