aboutsummaryrefslogtreecommitdiff
path: root/test (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-07-02[node:buffer] Implement `isUtf8` and `isAscii` (#3498)Gravatar Jarred Sumner 1-1/+23
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-02fix zero length env var (#3496)Gravatar dave caruso 1-0/+10
2023-07-02Fixes #3489 (#3490)Gravatar Jarred Sumner 1-0/+28
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-01Use exact versions in testsGravatar Jarred Sumner 7-27/+68
2023-07-01Make this test less flakyGravatar Jarred Sumner 1-1/+1
2023-07-01Make this test less flakyGravatar Jarred Sumner 1-1/+22
2023-07-01Make this test less flakyGravatar Jarred Sumner 1-2/+10
2023-07-01Use `BunString` in `SystemError` (#3485)Gravatar Jarred Sumner 1-2/+39
* Use `BunString` in SystemError * Use Bun::toStringRef when we will de-ref strings * Move `napi_create_error` to C++ to support `code` being a Symbol potentially * Update blob.zig * Make this test less flaky --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-01[WIP]Fix calling `Buffer.toString` with `(offset, length, encoding)` (#3467)Gravatar Ai Hoshino 1-0/+79
* Allow `toString` to be called with `(offset, length, encoding)`. Close: #3085 * handle undefined value * add tests for buffer.xxxSlice * fix parameters * fix offset and length
2023-07-01skip private class fields (#3484)Gravatar Dylan Conway 1-0/+56
2023-07-01Add testGravatar Jarred Sumner 1-0/+9
2023-07-01[jest] fix lifecycle hook execution order (#3461)Gravatar Alex Lam S.L 2-3/+34
* [jest] fix lifecycle hook execution order * strip `std.debug.assert()` from release build
2023-06-30[install] handle `workspace:` specifier correctly (#3474)Gravatar Alex Lam S.L 2-8/+52
fixes #3430
2023-06-29Fixes `node:http` and `node:stream` so `ytdl-core` works. (#3452)Gravatar dave caruso 1-1/+22
* fix crash in readablestate * make node:https request+get actually use https * use a native readablestream in IncomingMessage * tweaks * fix abort crash * emit close by default * remove abort. this isnt a real function * add validate functions, fixup some other requested changes. not done yet * Update WebCoreJSBuiltins.cpp * Update JSReadableState.cpp * Add some missing exports --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-29Make `node:os` `tmpdir` more consistent with Node.jsGravatar Jarred Sumner 1-0/+5
2023-06-29[bundler] avoid printing unnecessary declarations (#3456)Gravatar Dylan Conway 1-0/+71
* skip declarations without values * tests * deoptimize cjs when decls are needed
2023-06-29cant believe i missed this (#3453)Gravatar dave caruso 1-0/+13
2023-06-29Revert "[jest] fix lifecycle hook execution order (#3447)" (#3455)Gravatar Jarred Sumner 2-34/+3
This reverts commit 182e8aa1392af9ba92beccce06f49f8e4593fe5c.
2023-06-28Another testGravatar Jarred Sumner 1-0/+9
2023-06-28Add GC test for errorsGravatar Jarred Sumner 1-0/+26
2023-06-28use main field over module for runtime (#3448)Gravatar Dylan Conway 1-0/+200
* use main field over module for runtime * move flag to `Resolver` * set `prefer_module_field` in `initWithModuleGraph`
2023-06-28Fix bad testGravatar Jarred Sumner 1-2/+2
2023-06-28export resolve6 from dns/promises (#3450)Gravatar dave caruso 2-0/+33
2023-06-28[jest] fix lifecycle hook execution order (#3447)Gravatar Alex Lam S.L 2-3/+34
2023-06-28Make these tests do moreGravatar Jarred Sumner 1-1/+13
2023-06-28Introduce `await Bun.file(path).exists()` (#3446)Gravatar Jarred Sumner 1-0/+8
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-28Error.prototype.stack gets sourcemapped stacktraces and introduce ↵Gravatar Jarred Sumner 1-0/+12
Error.appendStackTrace (#3441) * Fix potential crash when reading sourcemapped stack traces * Format & sourcemap Error.prototype.stack * prevent double sourcemapping * Introduce Error.appendStackTrace * Fix source url * hide private stack traces in non-debug builds * fixes #3443 * Bump WebKit * Fix test failure in vm.test * Support new() & add test --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-28[install] workaround run-time module loading issue (#3432)Gravatar Alex Lam S.L 2-79/+97
2023-06-27[bun:sqlite] enable FTS5 on linux build (#3431)Gravatar Benjamin Ryan 1-0/+18
* [bun:sqlite] enable FTS5 on linux build * prettier
2023-06-27Add builtin exports listGravatar Jarred Sumner 4-0/+30211
2023-06-27Fix `node:util.callbackify` (#3428)Gravatar Ai Hoshino 1-0/+323
* remove the incorrect parameters Close: https://github.com/oven-sh/bun/issues/3424 * fix error code * add callbackify tests * fix function type * ensure `done` is called when error occurred
2023-06-27minor build diffs (#3427)Gravatar Alex Lam S.L 1-0/+0
2023-06-26Fix default export of `"module"` modulebun-v0.6.10Gravatar Jarred Sumner 1-0/+5
2023-06-26fix #3412 (#3422)Gravatar dave caruso 1-0/+14
2023-06-26webpack test and add empty `prototype` prop to module (#3421)Gravatar Dylan Conway 5-1/+51
2023-06-26[bun install] Implement `--exact` flag (#3409)Gravatar Jarred Sumner 1-0/+55
* [bun install] Implement `--exact` flag * Rename to --save-exact * Rename --exact to --save-exact * Update bun-add.test.ts * We're going with --exact as the flag name --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-26Fix .rejectsGravatar Jarred Sumner 1-0/+22
2023-06-26`.randomInt()` support (#3357)Gravatar Silas Rech 1-0/+21
* Add initial .randomInt() fallback * Add basic .randomInt() test * Attempt creating a native implementation * Switch to JSC.wrapWithHasContainer * Switch to .jsNumberFromUint64(), it seems like using just .jsNumber() causes the number to overflow in some cases * Regenerate out folder after rebasing
2023-06-26Runtime support for `__esModule` annotations (#3393)Gravatar Jarred Sumner 11-0/+86
* Runtime support for `__esModule` annotations * Ignore `__esModule` annotation when `"type": "module"` is set --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-26test moved to `node-module-module.test.js`Gravatar Dylan Conway 1-6/+0
2023-06-26Implement writev & readv (#3419)Gravatar Jarred Sumner 1-0/+65
* [node:fs] Implement `writev` and `readv` * writev & readv tests * cast to const type * woops * cast --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-26[install] support trustedDependencies (#3288)Gravatar Alex Lam S.L 1-1/+73
* [install] support trustedDependencies closes #2073 * use `strings.indexOfChar()` * use hashes instead of strings * utilise `inline else`
2023-06-26implement `_nodeModulePaths` and `require.main.paths` (#3411)Gravatar Dylan Conway 1-0/+19
* tests in progress * add `require.main.paths`, add every dir up to root * remove imports
2023-06-25Fix test failures in import.meta (#3403)Gravatar Jarred Sumner 1-2/+9
* Fix test failures in import.meta * regenerate * Use bound functions for `import.meta.require` and `import.meta.require.resolve` and `Module.createRequire` --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-25Fixes #3334 (#3401)Gravatar Jarred Sumner 1-0/+21
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-25chore: update lol-html version (#3356)Gravatar Brúnó Salomon 1-0/+15
* chore: update lol-html version * add tests --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-06-25Add support for install with --frozen-lockfile (#3365)Gravatar Tiago Teixeira 1-0/+49
* Add support for install with --frozen-lockfile * Add test * Add test for frozenLockfile in config file
2023-06-25[fs.watch] fix reference/deinit (#3396)Gravatar Ciro Spaciari 1-1/+44
* fix js reference * fix close oops * refactor + hasPendingActivity * fmt * fix race conditions * fixup * add test calling close on error event * fix close inside close + test * cleanup
2023-06-25Fix the parameters of WriteStream constructor. (#3402)Gravatar Ai Hoshino 1-0/+38
* Fix the parameters of the `WriteStream` constructor. Close: https://github.com/oven-sh/bun/issues/3395 * test append mode in `createWriteStream` * fix lint * wait first stream finished
2023-06-26[install] fix hang in `bun install --production` (#3406)Gravatar Alex Lam S.L 1-10/+39