Files
bun.sh/test/js/node/process/call-constructor.test.js
2024-12-09 13:15:14 -08:00

8 lines
266 B
JavaScript

import { expect, test } from "bun:test";
import process from "process";
test("the constructor of process can be called", () => {
let obj = process.constructor.call({ ...process });
expect(Object.getPrototypeOf(obj)).toEqual(Object.getPrototypeOf(process));
});