mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
12 lines
336 B
JavaScript
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({});
|
|
});
|