File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -336,17 +336,18 @@ declare const Bun: { (): void; version?: string } | undefined;
336336 * with a future change to these global objects.
337337 */
338338function getRuntimeInfo ( ) : string {
339+ const endianness = BSON . NumberUtils . isBigEndian ? 'BE' : 'LE' ;
339340 if ( 'Deno' in globalThis ) {
340341 const version = typeof Deno ?. version ?. deno === 'string' ? Deno ?. version ?. deno : '0.0.0-unknown' ;
341342
342- return `Deno v${ version } , ${ os . endianness ( ) } ` ;
343+ return `Deno v${ version } , ${ endianness } ` ;
343344 }
344345
345346 if ( 'Bun' in globalThis ) {
346347 const version = typeof Bun ?. version === 'string' ? Bun ?. version : '0.0.0-unknown' ;
347348
348- return `Bun v${ version } , ${ os . endianness ( ) } ` ;
349+ return `Bun v${ version } , ${ endianness } ` ;
349350 }
350351
351- return `Node.js ${ process . version } , ${ os . endianness ( ) } ` ;
352+ return `Node.js ${ process . version } , ${ endianness } ` ;
352353}
You can’t perform that action at this time.
0 commit comments