aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Derrick Farris <mr.dcfarris@gmail.com> 2023-02-22 14:51:17 -0600
committerGravatar GitHub <noreply@github.com> 2023-02-22 12:51:17 -0800
commite8c9c644cae8793e1eeb241168c6c10fb7d3fb37 (patch)
tree2cee2fa8244dbbc73355dd15fcfffdcf6ae29019 /src
parent629be18867267e5d052ec2fd4e584028eb233952 (diff)
downloadbun-e8c9c644cae8793e1eeb241168c6c10fb7d3fb37.tar.gz
bun-e8c9c644cae8793e1eeb241168c6c10fb7d3fb37.tar.zst
bun-e8c9c644cae8793e1eeb241168c6c10fb7d3fb37.zip
fix(child_process): import from primordials (#2132)
Diffstat (limited to 'src')
-rw-r--r--src/bun.js/child_process.exports.js10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/bun.js/child_process.exports.js b/src/bun.js/child_process.exports.js
index fefacd708..18ade51b3 100644
--- a/src/bun.js/child_process.exports.js
+++ b/src/bun.js/child_process.exports.js
@@ -8,15 +8,7 @@ const {
} = import.meta.require("node:os");
const { promisify } = import.meta.require("node:util");
-const { ArrayBuffer } = import.meta.primordials;
-
-var Uint8Array = globalThis.Uint8Array;
-var String = globalThis.String;
-var Object = globalThis.Object;
-var Buffer = globalThis.Buffer;
-var Promise = globalThis.Promise;
-
-var PromiseAll = Promise.all;
+const { ArrayBuffer, Uint8Array, String, Object, Buffer, Promise } = import.meta.primordials;
var ObjectPrototypeHasOwnProperty = Object.prototype.hasOwnProperty;
var ObjectCreate = Object.create;