From 49d80755d6120aefaea8db8875ebdef59e5b4f69 Mon Sep 17 00:00:00 2001 From: snwy Date: Mon, 9 Dec 2024 13:15:10 -0800 Subject: [PATCH] test --- test/js/node/process/call-constructor.test.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/js/node/process/call-constructor.test.js diff --git a/test/js/node/process/call-constructor.test.js b/test/js/node/process/call-constructor.test.js new file mode 100644 index 0000000000..9752fedb98 --- /dev/null +++ b/test/js/node/process/call-constructor.test.js @@ -0,0 +1,7 @@ +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)); +});