aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/bindings.cpp (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-02-13Implement `FormData` (#2051)Gravatar Jarred Sumner 1-0/+53
* Backport std::forward change * Implement `FormData` * Fix io_darwin headers issue * Implement `Blob` support in FormData * Add test for file upload * Fix bug with Blob not reading Content-Type * Finish implementing FormData * Add FormData to types --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-01-24Fixes #1887Gravatar Jarred Sumner 1-1/+1
2023-01-23Fix crash in DOMJIT call with empty inputGravatar Jarred Sumner 1-0/+9
2023-01-23Add a commentGravatar Jarred Sumner 1-16/+1
2023-01-17Fix console.log printing multiple propertiesGravatar Jarred Sumner 1-8/+20
2023-01-10attempt (unsuccessfully) to improve c++ build timeGravatar Jarred Sumner 1-2/+64
2023-01-09check for isEmpty or !isCellGravatar Jarred Sumner 1-1/+1
2023-01-08[internal] Fix checking for Error objectGravatar Jarred Sumner 1-7/+31
2023-01-07[Bun.connect] Fix bug where connect() Promise wouldn't reject on a ↵Gravatar Jarred Sumner 1-2/+6
connection error
2023-01-07Implement DNS module (#1691)Gravatar Jarred Sumner 1-0/+56
* Boilerplate for DNS stuff * Add c-ares * lookup * make * Implement dns.lookup * Create c-ares * wip * normalize * repro * Revert "repro" This reverts commit 8b93e0c295b335b8882a9601da47720348549beb. * Implement macOS `getaddrinfo_async_start` * embiggen * Update string_immutable.zig * Update Makefile * alright * Update .gitignore * Add types * more ccache * Update Dockerfile * Update Dockerfile * Update Dockerfile * Update bun.d.ts Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-01-01Make asPromise() and asInternalPromise() safer, but slowerGravatar Jarred SUmner 1-2/+2
2023-01-01[internal] Add more bindingsGravatar Jarred Sumner 1-0/+14
2022-12-28log object string correctly (#1674)Gravatar Alex Lam S.L 1-10/+10
use `Symbol.toStringTag` of the object or that of its `.prototype` fixes #1584
2022-12-17Delete Oniguruma (#1625)Gravatar Jarred Sumner 1-17/+1
* Update .gitmodules * Delete oniguruma * Delete Oniguruma * Make this test less flaky * :scissors: Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-12-06Don't call getters in console.logGravatar Jarred Sumner 1-4/+5
2022-12-059 charactersGravatar Dylan Conway 1-1/+1
2022-12-05Make `console` an `AsyncIterable`Gravatar Jarred Sumner 1-0/+5
2022-12-04Clean up more casesGravatar Jarred Sumner 1-6/+6
2022-12-04Fix console.log sometimes incorrectly reporting undefinedGravatar Jarred Sumner 1-4/+4
cc @Electroid
2022-12-02matchers for less than and greater than (#1573)Gravatar Dylan Conway 1-0/+46
* toBeGreaterThan with tests * toBeGreaterThanOrEqual and tests * toBeLessThan and toBeLessThanOrEqual with tests * expect types * switch expressions
2022-12-02Add some code I forgot to commitGravatar Jarred Sumner 1-0/+4
2022-12-01Fix crash when macros return a PromiseGravatar Jarred Sumner 1-0/+14
2022-12-01bun test `toStrictEqual` (#1568)Gravatar Dylan Conway 1-42/+100
* toStrictEqual and bug fix in deepEqual * rebase Remove some dead bindings code * remove debugging test * canGetIndexQuickly for array holes * isStrict template Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-12-01Include size of ArrayBuffer and others in GC timer schedulingGravatar Jarred Sumner 1-1/+1
2022-12-01Reduce memory usage in Bun.serve() by up to 3x (#1569)Gravatar Jarred Sumner 1-0/+17
* Update WebKit * Use 5x less memory in Bun.serve() * Update Dockerfile.devcontainer * Update async-overhead.mjs Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-11-30formatting and remove commentGravatar Dylan Conway 1-13/+0
2022-11-29:scissors:Gravatar Jarred Sumner 1-579/+4
2022-11-28toHaveProperty and tests (#1558)Gravatar Dylan Conway 1-0/+119
* toHaveProperty and tests * emoji tests
2022-11-27Fix crash in console.logGravatar Jarred Sumner 1-10/+13
2022-11-27Increase the max prototype countGravatar Jarred Sumner 1-19/+30
2022-11-27Update bindings.cppGravatar Jarred Sumner 1-0/+2
2022-11-27Handle more cases with printing objectsGravatar Jarred Sumner 1-26/+21
2022-11-27remove leakGravatar Jarred Sumner 1-5/+8
2022-11-27[console.log] Improve Object formatting and error handlingGravatar Jarred Sumner 1-7/+170
2022-11-23Bun.deepEquals and expect().toEqual() (#1548)Gravatar Dylan Conway 1-0/+540
* all of deepEquals * remove comment, tests, move inline function
2022-11-23possibly more reliable Bun.spawn (#1547)Gravatar Jarred Sumner 1-1/+1
* wip * wip * Fix bug with stdin * zig fmt * seems to work! * Update streams.test.js Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-11-22clone in putRecordGravatar Jarred Sumner 1-3/+3
2022-11-20Fix spurious rejected promise handler callsGravatar Jarred Sumner 1-2/+20
2022-11-18bun test matchers and tests (#1526)Gravatar Dylan Conway 1-1/+6
* ignore webkit for cherry-pick * toContain and toBeTruthy * toBe null, undefined, falsy, toHaveProperty, .not * markBindings * remove toHaveProperty, undo ignore webkit, more tests * undo ignore webkit * remove bad tests * check if length property exists for toHaveLength() * fix call signature * handle argument that is not an integer * getLengthOfArray returns u64 * switch to truncate * toHaveLength() edge cases * add toBooleanSlow() * infinity, nan, negative
2022-11-09Fix broken stacktracesGravatar Jarred Sumner 1-2/+4
2022-11-08Update bindings.cppGravatar Jarred Sumner 1-0/+1
2022-11-07Return a rejected promise if there was an errorGravatar Jarred Sumner 1-0/+3
2022-11-06Automatically install npm packages when running a script in Bun's runtime ↵Gravatar Jarred Sumner 1-3/+13
(#1459) * Update bundler.zig * WIP * Update README.md * Update README.md * wip * Support running scripts without package.json * Add `--no-auto-install` and `--prefer-offline` flags * WIP * wip * Update headers-handwritten.h * WIP * Build fixes * Fix UAF * Update install.zig * Must call .allocate() * Micro-optimization: only call .timestamp() once per tick when installing packages * Support progress bar * Extend the timestamp for package staleness checks to 1 day * Add `--prefer-latest`, `-i` CLI Flags * Fix crash * Support line text manually being set on an Error instance * Add a few more fields for error messages * Fix bug when counting 8 character strings in string builder * Implement error handling for automatic package installs! * Fix crash * Make it say module when there's a slash * Update module_loader.zig * Ban dependency versions in import specifiers when a package.json is present * Remove unused field * Update README.md * Update README.md * Update README.md * Update README.md Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-11-06Add way to explicitly coercion object to int32Gravatar Jarred Sumner 1-0/+6
2022-10-23Add `fd` to `SystemError` and fix 2 cases with invalid tagged unionGravatar Jarred Sumner 1-0/+12
cc @sno2
2022-10-20Fix Bun.serve error handler error param (#1359)Gravatar zhiyuan 1-0/+14
2022-10-17Implement `sendText`, `sendBinary`, `publishText`, `publishBinary`Gravatar Jarred Sumner 1-0/+5
2022-10-17Implement `error` and `binaryType`Gravatar Jarred Sumner 1-6/+13
2022-10-17Redo WebSocket apiGravatar Jarred Sumner 1-0/+4
2022-10-09Update WebKitGravatar Jarred Sumner 1-4/+5