diff options
author | 2023-07-12 15:21:55 -0700 | |
---|---|---|
committer | 2023-07-12 15:21:55 -0700 | |
commit | ae0a724981dd70f457d83f5f134e10dfbc7f72c5 (patch) | |
tree | fc094d1176c60a3378dab270264be3352d11ea87 /src/js/builtins/ProcessObjectInternals.ts | |
parent | 0631f878667d9a5cab80d7c1167eac7cbc1c93c6 (diff) | |
download | bun-ae0a724981dd70f457d83f5f134e10dfbc7f72c5.tar.gz bun-ae0a724981dd70f457d83f5f134e10dfbc7f72c5.tar.zst bun-ae0a724981dd70f457d83f5f134e10dfbc7f72c5.zip |
Improve our internal typedefs (#3608)
* types
* some more
* yeah
* i think that fixes it
* oop
Diffstat (limited to 'src/js/builtins/ProcessObjectInternals.ts')
-rw-r--r-- | src/js/builtins/ProcessObjectInternals.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/js/builtins/ProcessObjectInternals.ts b/src/js/builtins/ProcessObjectInternals.ts index 8e2449a43..27cad80d0 100644 --- a/src/js/builtins/ProcessObjectInternals.ts +++ b/src/js/builtins/ProcessObjectInternals.ts @@ -35,9 +35,7 @@ export function binding(bindingName) { // TODO: make this less hacky. // This calls require("node:fs").constants // except, outside an ESM module. - const { constants: fs } = globalThis[globalThis.Symbol.for("Bun.lazy")]("createImportMeta", "node:process").require( - "node:fs", - ); + const { constants: fs } = $lazy("createImportMeta", "node:process").require("node:fs"); constants = { fs, zlib: {}, |