Files
bun.sh/test/js/node/process/call-constructor.test.js
2025-01-06 14:30:36 -08:00

12 lines
336 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));
});
test("#14346", () => {
process.__proto__.constructor.call({});
});