aboutsummaryrefslogtreecommitdiff
path: root/test/js (follow)
AgeCommit message (Collapse)AuthorFilesLines
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-19Align fetch() redirect behavior with spec (#5729)Gravatar Jarred Sumner 1-0/+121
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-19Fixes #3712 (#5730)Gravatar Jarred Sumner 1-0/+3
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-18PrettierGravatar Jarred Sumner 2-7/+7
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-18In `bun:sqlite`, make sure we set the number tag correctly when creating the ↵Gravatar Jarred Sumner 1-0/+7
JSValue (#5655) * Make sure we set the number tag correctly when returning values from SQLite * Add DOMJIT test * Update JSSQLStatement.cpp --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-18feat(test): Implement `arrayContaining` (#5572)Gravatar WingLim 1-0/+16
* feat(test): implement `arrayContaining` * feat: early return when expectedArray is empty * feat: add test for toEqual * chore: use `JSC::isArray` * chore: use getIndex for performance * fix: use deepEqual --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-09-18feat(console.log): Print annonymus when class name is unknown (#5595)Gravatar Jibran Kalia 1-1/+1
This matches the functionality in Node.
2023-09-17Workaround #5604 (#5615)Gravatar Jarred Sumner 1-0/+25
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@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-16feat(encoding): TextDecoder support undefined (#5387)Gravatar WingLim 1-0/+5
* feat(encoding): TextDecoder support undefined * chore: format test file
2023-09-16fix(fetch) handle 100 continue (#5496)Gravatar Ciro Spaciari 1-0/+60
* handle 100 continue * move comment * cleanup * fmt
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-15fix(request) handle undefined/null/empty signal on request (#5503)Gravatar Ciro Spaciari 1-0/+37
* handle undefined/null/empty signal on request * better approach
2023-09-15fix(corking) uncork if needed (#5525)Gravatar Ciro Spaciari 1-414/+442
* fix size limit * uncork if needed instead of terminating * undo unrelated changes
2023-09-15feat(runtime): add `process.binding` `uv`/`natives`/`config` + make global ↵Gravatar dave caruso 2-0/+27
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-15Implement `URL.canParse` (#5463)Gravatar Jarred Sumner 1-0/+47
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-09-15fix(proxy): allow empty string `http_proxy` env. (#5464)Gravatar Ai Hoshino 1-0/+29
Close: #5380
2023-09-15Fix testGravatar Jarred Sumner 1-2/+1
2023-09-15Add missing `"size"` getter to `URLSearchParams` prototypeGravatar Jarred Sumner 1-0/+2
2023-09-15dup and close file descriptors (#5341)Gravatar Dylan Conway 2-0/+53
* track one shot fds * dup fd * skip for rearm on mac * dup if fd * cleanup * force unregister on close * deinitForceUnregister * test * add prompts --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-09-14fix(nitro) fix sourcemaps and JSSink closing (#5422)Gravatar Ciro Spaciari 3-0/+5653
* fix JSSink progress on sourcemap checking * fix sourcemaps * update JSSink fix * undo + tests --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.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 2-5/+34
* fix(runtime): emit `node:net` connect error event vs throw * oops * finally * ok * we are good
2023-09-13fix(Bun.serve) fix buffering edge case (#5152)Gravatar Ciro Spaciari 2-0/+31
* fix buffering clean * fix resolveMaybeNeedsTrailingSlash and try to fix ci/cd error * fix resolveMaybeNeedsTrailingSlash and try to fix ci/cd error * oops --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-09-13fix(runtime): make most globals configurable/deletable, allow resuming the ↵Gravatar dave caruso 5-2/+69
console iterator (#5216) * Fix #5177 * Fix #5175 * make most globals deletable/overridable * not done * cool * a * done * fix test * oops * yippee
2023-09-13test (#5244)Gravatar dave caruso 3-0/+28
2023-09-13fix(BunFile.slice) fix slice when length is greater than the size (#5186)Gravatar Ciro Spaciari 1-0/+10
* check the limits for file, when slicing * check eof * undo test
2023-09-13fix(node:dns): fix the crash. (#5200)Gravatar Ai Hoshino 1-1/+61
2023-09-13fix(console.log) fix printing long custom format (#5164)Gravatar Ciro Spaciari 2-0/+35
* avoid overflow * Update src/bun.js/bindings/exports.zig * add mongodb inspect test * bun db test --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
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-13fix(node/fetch): Make data URL fetch consistent with node (#5126)Gravatar David Hewitt 1-0/+24
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-11add NODE_TLS_REJECT_UNAUTHORIZED (#4829)Gravatar Ciro Spaciari 2-0/+32
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-11fix(BunFile) .slice offset on macOS (#4991)Gravatar Ciro Spaciari 1-0/+9
* fix offset * simplify error
2023-09-11update testGravatar Dylan Conway 1-1/+1
2023-09-10Fixes #4588 (#4804)Gravatar Jarred Sumner 1-0/+7
* Fixes #4588 * typo * fixup --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>