• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2require('../common');
3const assert = require('assert');
4const EventEmitter = require('events');
5
6const proto = Object.getPrototypeOf(process);
7
8assert(process instanceof process.constructor);
9assert(proto instanceof EventEmitter);
10
11const desc = Object.getOwnPropertyDescriptor(proto, 'constructor');
12
13assert.strictEqual(desc.value, process.constructor);
14assert.strictEqual(desc.writable, true);
15assert.strictEqual(desc.enumerable, false);
16assert.strictEqual(desc.configurable, true);
17