mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
The ecosystem broke by making it non-writable, so this is a good intermediate fix. PR-URL: https://github.com/nodejs/node/pull/26488 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Yuta Hiroto <hello@hiroppy.me> Reviewed-By: James M Snell <jasnell@gmail.com>
8 lines
274 B
JavaScript
8 lines
274 B
JavaScript
// Flags: --experimental-modules
|
|
import '../common';
|
|
import assert from 'assert';
|
|
import process from 'process';
|
|
|
|
assert.strictEqual(Object.prototype.toString.call(process), '[object process]');
|
|
assert(Object.getOwnPropertyDescriptor(process, Symbol.toStringTag).writable);
|