aboutsummaryrefslogtreecommitdiff
path: root/test/js/node (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-09-30Update cp.test.tsGravatar Jarred Sumner 1-1/+1
2023-09-30tweak github actions (#6195)Gravatar Jarred Sumner 1-1/+1
* Discord comments * better * better * actions --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-29add Socket.prototype; lol (#5945)Gravatar dave caruso 1-0/+7
2023-09-28Get Next.js Pages Router to work (#6095)Gravatar dave caruso 6-9/+62
* hell * make it so bun-debug-src * teag * wild * yippee * fas * fix async hooks assertions * yap * yeah that's wild * aa * a * increase time allowed * so trivial
2023-09-27Complete rework of the majority of `node:util`, primarily `util.inspect` (#4493)Gravatar jhmaster 7-0/+4113
* 1st revision of new util.inspect impl. (not done) * fix util.types.isArrayBuffer * fix some utl tests and bugs * fix node:tty missing primordials * fix utl stackoverflow handling & some tests * narrow down diff. context test * util.inspect indirect circulars optimization * temp workaround for buggy is...Function checks * impl. Map/Set/Iterator entries inspection * fix bigint & symbol objects inspection * error inspection fixes * misc util tests stuff * inline getExternalValue stub * leftovers * util.inspect promise internals * run bun fmt * commit make js changes * cut out unnecessary utl files * reorganize utl folder structure * remove browserify buffer check * Try to revert git messing up uws somehow This reverts commit 2c27e16e7d361657b9c3a7dc7892117cf31e15ee. * commit src/js/out files again * redo this edit too * refresh js/out files * Removed uws submodule * tidy up * unused primordials * run fmt --------- Co-authored-by: dave caruso <me@paperdave.net>
2023-09-27fix(node:fs): fix `fs.exists` callback parameters (#6097)Gravatar Ai Hoshino 1-0/+41
Close: #6073
2023-09-25no this value (#6063)Gravatar Dylan Conway 1-0/+15
2023-09-25Add Module._extensions (#5998)Gravatar Jarred Sumner 1-0/+7
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-21Don't use arena in node:fs (#5863)Gravatar Jarred Sumner 1-0/+19
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-21fix: correctly pass the encrypted(bool) property on "Socket" for express.js ↵Gravatar Liz 3-3/+105
(#5878) * fix: correctly pass the encrypted property on "Socket" for express.js Express relies on this for setting the requests protocol. Since this is on a dummy object, a property is simply set with the actual value. Which seams okay as a workaround. * chore: add generated files * chore: add test * refactor: set property directly rather then through a getter
2023-09-21fix(node:fs): use the right copyFile constants (#5874)Gravatar dave caruso 1-1/+30
2023-09-21Fix test failures (#5862)Gravatar Jarred Sumner 1-2/+2
* Fix test failures * Fixes #5851 --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-21On Linux, respect memory limit from cgroups (#5849)Gravatar Jarred Sumner 1-0/+10
* Implement `process.constrainedMemory()` * Add a comment * Handle max * Missing header * We can use WTF::ramSize now * Update WebKit * Update ZigGlobalObject.cpp * WebKit * :scissors: --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-20feat(node:dns): implement `dns.lookupService` (#5613)Gravatar Ai Hoshino 1-0/+66
* feat(node:dns): implement dns.lookupService Close: #4347 * fix flags * add `getSockaddr` * fix sockaddr size * flaky test
2023-09-20implement `Module.prototype._compile` (#5840)Gravatar dave caruso 1-0/+17
2023-09-20feat(runtime): implement `console._stdout` (#5842)Gravatar dave caruso 1-0/+24
* implement console._stdout * nonenum
2023-09-20Run bun fmtGravatar Ashcon Partovi 1-9/+6
2023-09-20Call `Error.prepareStackTrace` on `new Error().stack` (#5802)Gravatar Jarred Sumner 2-11/+60
* Always call `Error.prepareStackTrace` * Support node:vm * Remove this * Handle more cases --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-20Fixes #5800Gravatar Jarred Sumner 1-1/+1
Fixes #5800
2023-09-19Fixes #5769 (#5775)Gravatar Jarred Sumner 1-0/+13
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-18PrettierGravatar Jarred Sumner 1-4/+4
2023-09-18fix(runtime/node): Allow `new Buffer.alloc()` + Upgrade WebKit (#5699)Gravatar dave caruso 1-0/+11
* make bufferconstructor a static hash table * chore: Upgrade WebKit to 4d995edbc44062b251be638818edcd88d7d14dd7 * make it constructable now * fix comment * yippee * update CI workflows
2023-09-18feat(runtime): Implement `console.Console` (#5448)Gravatar dave caruso 1-0/+66
* prototype * asdfg * It works! * okay its done now fr * self review * ok * fix * fix test --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-09-18Fix HTTP listen behavior being non-compliant with node (#5689)Gravatar dave caruso 1-0/+16
* Fix HTTP listen behavior being non-compliant with node * Add error code for address in use * use SystemError --------- Co-authored-by: SuperAuguste <19855629+SuperAuguste@users.noreply.github.com>
2023-09-16fix(child_process) unref next tick so exit/close event can be fired before ↵Gravatar Ciro Spaciari 2-0/+35
application exits (#5481) * unref next tick so exit callback can be called * fmt + test * oops * add ref_count * update pending * comment and fix
2023-09-16fix: node compatibility with empty path string (#4693)Gravatar MrPalixir 1-0/+17
Co-authored-by: MrPalixir <73360179+MrPalixir@users.noreply.github.com>
2023-09-15fix(node/fs.watch): Check first char before trimming event filenames (#5505)Gravatar David Hewitt 1-4/+34
* Add failing test * fix(node/fs.watch): Don't lose first char in event * run prettier
2023-09-15feat(runtime): add `process.binding` `uv`/`natives`/`config` + make global ↵Gravatar dave caruso 1-0/+26
object properties lazy (#5355) * binding uv * we did that * some more bindings * fix doc * fix uv * yo * static hash table nonsense <3 * huge refactor to the global object i am not ready for merge conflicts * it works part 3 * lose --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-09-15Rename this fileGravatar Jarred Sumner 1-0/+0
2023-09-15Fixes #5465 (#5468)Gravatar Jarred Sumner 1-0/+25
* Fixes #5465 Fixes #5465 * Update tty.js * Update InternalModuleRegistryConstants.h --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-14fix http set cookie headers (#5428)Gravatar Dylan Conway 1-0/+18
* allow multiple set-cookie values * make it work for `getHeader` * move `getHeader` to cpp * remove set-cookie check * move `setHeader` to cpp --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-09-14async-ify all node:fs functions (#5360)Gravatar Jarred Sumner 1-5/+8
* async all node:fs functions * draw the rest of the owl * LLVM & Clang 16 --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-14v8 date parser tests (#5332)Gravatar Dylan Conway 1-0/+462
* Create v8-date-parser.test.js * one more test * add permalinks and enable parser in bun --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-09-14fix(runtime): emit `node:net` connect error event vs throw (#5336)Gravatar dave caruso 1-1/+29
* fix(runtime): emit `node:net` connect error event vs throw * oops * finally * ok * we are good
2023-09-13test (#5244)Gravatar dave caruso 3-0/+28
2023-09-13fix(node:dns): fix the crash. (#5200)Gravatar Ai Hoshino 1-1/+61
2023-09-13feat(nodejs): implement `os.availableParallelism` (#5109)Gravatar WingLim 1-0/+4
* feat(nodejs): implement `os.availableParallelism` * chore: do not throw error as same as node * refactor: use `navigator.hardwareConcurrency`
2023-09-13avoid inserting extraneous"accept-encoding" header (#5057)Gravatar iidebyo 1-0/+21
* add no extraneous accept-encoding header test * ensure fetch honors no decompress opt * fix format on test/js/node/http/node-http.test.ts
2023-09-12Update node-dns.test.jsGravatar Dylan Conway 1-1/+1
2023-09-12fix up with `prettier` (#5092)Gravatar Alex Lam S.L 1-1/+1
2023-09-12fix(node/path): Prevent memory corruption in parse (#5083)Gravatar David Hewitt 1-0/+11
* Add failing test for issue #4954 * fix(node/path): Return results with toValueGC
2023-09-11fix(path): Fix edge case in `path.relative` (#4811)Gravatar Ai Hoshino 1-0/+13
Close: #4789
2023-09-11Fix `Buffer.from` to handle double-byte hex encoding strings (#4933)Gravatar Ai Hoshino 1-0/+13
Close: #4919
2023-09-11update testGravatar Dylan Conway 1-1/+1
2023-09-08Fix listen() using unix socket if argument is a valid port (#4620)Gravatar Ashcon Partovi 1-0/+18
* Fix listen() using unix socket if argument is a valid port Fixes #4582 * Add test
2023-09-07Fix a couple important bugs (#4560)bun-v1.0.0Gravatar Jarred Sumner 1-1/+7
2023-09-07revert (#4539)Gravatar dave caruso 3-15/+18
* Revert "remove native events from streams" This reverts commit e063a47a53744a2bf5b1c2dd433698c9e37b75d6. * finish revert * remove accidental submodule * dfghj
2023-09-07Progress for Next.js (#4468)Gravatar dave caruso 3-28/+33
* L * ipc * asdfghjkl * dfghjk * it works! * types * patches for next.js * sdfghj * wsdfgn,./ * this * yolo * okay loser * asdfghjk * add some more APIs * MESS * sdfghjkl * remove native events from streams * stuff * remove lazy(primordials) test * debugging * okay * less fake extensions object * fix `Buffer.toString()` args logic * fix deserialize * make tests work * add test for `Buffer.toString` args * Update server.zig * remove test * update test * Update spawn-streaming-stdin.test.ts * fix linux build * Update fs.test.ts * cli message improvements * dfshaj * Fix fs.watch bug maybe? * remove --------- Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
2023-09-06feat(fetch) rejectUnauthorized and checkServerIdentity (#4514)Gravatar Ciro Spaciari 2-12/+20
* enable root certs on fetch * rebase * fix lookup * some fixes and improvements * fmt * more fixes * more fixes * check detached onHandshake * fix promise case * fix cert non-Native * add fetch tls tests * more one test
2023-09-06fix(runtime): fix `events.once` not working (#4520)Gravatar dave caruso 1-0/+12