aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-02-06 23:15:23 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-02-06 23:15:23 -0800
commit153834cf5c98fb1bda1a679154200fed9bbda4b7 (patch)
tree063acf8621a3828fa5b00b50217847e67c57e4b8 /test/bun.js
parent6aea31f4fcb7b0b1cfbe1aac43145c87cb09f775 (diff)
downloadbun-153834cf5c98fb1bda1a679154200fed9bbda4b7.tar.gz
bun-153834cf5c98fb1bda1a679154200fed9bbda4b7.tar.zst
bun-153834cf5c98fb1bda1a679154200fed9bbda4b7.zip
Throw on process.binding
Diffstat (limited to 'test/bun.js')
-rw-r--r--test/bun.js/process.test.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/bun.js/process.test.js b/test/bun.js/process.test.js
index e5517e7f6..8cc3e6b87 100644
--- a/test/bun.js/process.test.js
+++ b/test/bun.js/process.test.js
@@ -178,3 +178,7 @@ it("process.emitWarning", () => {
it("process.execArgv", () => {
expect(process.execArgv instanceof Array).toBe(true);
});
+
+it("process.binding", () => {
+ expect(() => process.binding("buffer")).toThrow();
+});