mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
* make our debug assertions work * install bun-webkit-debug * more progress * ok * progress... * more debug build stuff * ok * a * asdfghjkl * fix(runtime): fix bad assertion failure in JSBufferList * ok * stuff * upgrade webkit * Update src/bun.js/bindings/JSDOMWrapperCache.h Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> * fix message for colin's changes * okay * fix cjs prototype * implement mainModule * i think this fixes it all --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
13 lines
501 B
JavaScript
13 lines
501 B
JavaScript
import assert from "assert";
|
|
|
|
// ensure process.argv and Bun.argv are the same
|
|
assert.deepStrictEqual(process.argv, Bun.argv, "process.argv does not equal Bun.argv");
|
|
assert(process.argv === process.argv, "process.argv isn't cached");
|
|
assert(Bun.argv === Bun.argv, "Bun.argv isn't cached");
|
|
// assert(Bun.argv === process.argv, "Bun.argv doesnt share same ref as process.argv");
|
|
|
|
var writer = Bun.stdout.writer();
|
|
writer.write(JSON.stringify(process.argv));
|
|
await writer.flush(true);
|
|
process.exit(0);
|