aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/postgres/postgres.exports.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-01-02 21:05:56 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-01-02 21:05:56 -0800
commitea2b65d4834d864029299809fb23f40ba2a56f90 (patch)
treeb178b1c6327ed9b450b8764b0c13dea63112ee55 /src/bun.js/postgres/postgres.exports.js
parent80c2da73ef59f0170f1c92551c948a1b285da17c (diff)
downloadbun-ea2b65d4834d864029299809fb23f40ba2a56f90.tar.gz
bun-ea2b65d4834d864029299809fb23f40ba2a56f90.tar.zst
bun-ea2b65d4834d864029299809fb23f40ba2a56f90.zip
Draw the owljarred/pg
Diffstat (limited to 'src/bun.js/postgres/postgres.exports.js')
-rw-r--r--src/bun.js/postgres/postgres.exports.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bun.js/postgres/postgres.exports.js b/src/bun.js/postgres/postgres.exports.js
new file mode 100644
index 000000000..beae64f24
--- /dev/null
+++ b/src/bun.js/postgres/postgres.exports.js
@@ -0,0 +1,8 @@
+var symbolFor = Symbol.for;
+
+const lazy = globalThis[symbolFor("Bun.lazy")];
+if (!lazy || typeof lazy !== "function") {
+ throw new Error(
+ "Something went wrong while loading Bun. Expected 'Bun.lazy' to be defined.",
+ );
+}