mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
bun-polyfills: fix default exports
This commit is contained in:
@@ -40,7 +40,7 @@ export const main = path.resolve(process.cwd(), process.argv[1] ?? 'repl') satis
|
||||
|
||||
//? These are automatically updated on build by tools/updateversions.ts, do not edit manually.
|
||||
export const version = '1.0.4' satisfies typeof Bun.version;
|
||||
export const revision = '91f4ba534be9e23e6d4543738301af393848e954' satisfies typeof Bun.revision;
|
||||
export const revision = '8fcd645baee24344eaa4169b16ca42b1f0af830c' satisfies typeof Bun.revision;
|
||||
|
||||
export const gc = (globalThis.gc ? (() => (globalThis.gc!(), process.memoryUsage().heapUsed)) : (() => {
|
||||
const err = new Error('[bun-polyfills] Garbage collection polyfills are only available when Node.js is ran with the --expose-gc flag.');
|
||||
@@ -593,3 +593,5 @@ export const plugin = bunPlugin satisfies typeof Bun.plugin;
|
||||
});
|
||||
}
|
||||
});*/
|
||||
|
||||
export * as default from './bun.js';
|
||||
|
||||
@@ -312,3 +312,5 @@ export const read = {
|
||||
return koffi.decode(view, bOff, 'u64');
|
||||
},
|
||||
} satisfies typeof bunffi.read;
|
||||
|
||||
export * as default from './ffi.js';
|
||||
|
||||
@@ -107,3 +107,5 @@ export const optimizeNextInvocation = (() => {
|
||||
}) satisfies typeof jsc.optimizeNextInvocation;
|
||||
|
||||
export { setRandomSeed, getRandomSeed } from '../global/mathrandom.js';
|
||||
|
||||
export * as default from './jsc.js';
|
||||
|
||||
Reference in New Issue
Block a user