aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-11-25Enable Resizable ArrayBuffer proposalGravatar Jarred Sumner 1-0/+1
https://github.com/tc39/proposal-resizablearraybuffer
2022-11-25Upgrade WebKitGravatar Jarred Sumner 8-58/+82
2022-11-25Introduce `FileSink.ref()` and `FileSink.unref()`Gravatar Jarred Sumner 4-30/+230
2022-11-24Use is_in_heap_region instead of _check_ownedGravatar Jarred Sumner 1-1/+1
2022-11-24Fix crash when console.log() / console.error() fails to write to stdout/stdinGravatar Jarred Sumner 1-7/+28
2022-11-23Bun.deepEquals and expect().toEqual() (#1548)Gravatar Dylan Conway 8-66/+645
* all of deepEquals * remove comment, tests, move inline function
2022-11-23possibly more reliable Bun.spawn (#1547)Gravatar Jarred Sumner 6-6/+13
* 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-22Remove some dead codeGravatar Jarred Sumner 6-480/+16
2022-11-22[FileSystemRouter] Fix failing testsGravatar Jarred Sumner 1-2/+2
2022-11-22[FileSystemRouter] base_dir, Request, ResponseGravatar Jarred Sumner 3-1/+103
2022-11-22Introduce `Bun.FileSystemRouter` APIGravatar Jarred Sumner 9-166/+1501
2022-11-22clone in putRecordGravatar Jarred Sumner 1-3/+3
2022-11-21[bun:test] Add test for returning MAX_SAFE_INTEGERGravatar Jarred Sumner 1-0/+2
2022-11-21fix oniguruma regex character properties (#1528)Gravatar Dylan Conway 1-7/+62
* fix for character properties * cleanup tests * cleanup comments * i - 2 >= 0
2022-11-21[bun:sqlite] fix truncating to int32 in results (now truncates to int52)Gravatar Jarred Sumner 1-3/+13
TODO: bigint
2022-11-20Fix spurious rejected promise handler callsGravatar Jarred Sumner 5-7/+25
2022-11-20[internal] Implement `visitAdditionalChildren`Gravatar Jarred Sumner 2-33/+264
2022-11-20[streams] Fix memory leak affecting React SSR and moreGravatar Jarred Sumner 2-1010/+881
2022-11-20[TCP] Make `Socket` more careful about GCGravatar Jarred Sumner 3-0/+68
2022-11-19[fetch] Fix sporadic data corruption bug in HTTP client and add fast pathGravatar Jarred Sumner 1-0/+1
- This removes memory pooling from the HTTP client which sometimes caused invalid memory to be written to the response body. - This adds a fast path for small HTTP/HTTPS responses that makes it a single memory allocation for the response body, instead of copying & allocating a temporary buffer cc @Electroid
2022-11-19[internal] Add assertion for freeing global stringsGravatar Jarred Sumner 1-4/+5
2022-11-19[napi] Fix missing instance data finalizerGravatar Jarred Sumner 1-0/+5
2022-11-19[internal] Introduce `JSPromise.Strong`Gravatar Jarred Sumner 1-0/+24
2022-11-19Fix GC crash with `WebSocket` uncovered thx to `BUN_GARBAGE_COLLECTOR_LEVEL`Gravatar Jarred Sumner 2-25/+63
2022-11-19Fix a GC issue with `Bun.spawn`Gravatar Jarred Sumner 3-1014/+975
The `Subprocess` object stays alive until the process exits, even if it's never referenced
2022-11-19Implement a singleton version of `napi_get_instance_data` and ↵Gravatar Jarred Sumner 2-0/+35
`napi_set_instance_data` Still need to figure out how to do this without adding a layer of indirection to the global object as exposed to NAPI Addons This code is not tested
2022-11-18bun test matchers and tests (#1526)Gravatar Dylan Conway 7-8/+157
* 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-18Fix crash in process.env.FOO = bar that happened sometimesGravatar Jarred Sumner 1-13/+13
2022-11-16`console.timeLog()` but no extra arguments yetGravatar Jarred Sumner 1-3/+21
2022-11-15add generated getter/setter type with thisValue (#1513)Gravatar Dylan Conway 2-15/+48
2022-11-15Update ZigGlobalObject.cppGravatar Jarred Sumner 1-3/+1
2022-11-14Fix crash in web crypto. caused by refptrGravatar Jarred Sumner 3-2/+15
2022-11-13Make node streams faster (#1502)Gravatar Jarred Sumner 10-58/+90
* Make node streams faster * Fix for macOS, improve performance, handle ref and unref Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-11-12Redo how we poll pipes (#1496)Gravatar Jarred Sumner 1-11/+11
* Fix pipe * Handle unregistered * Fix failing test
2022-11-112 framesGravatar Jarred Sumner 1-1/+1
2022-11-11Replace `libbacktrace` with `WTFGetBacktrace`Gravatar Jarred Sumner 2-1/+35
2022-11-10Implement `napi_create_external` and `napi_get_value_external`Gravatar Jarred Sumner 5-86/+116
2022-11-10Increase stackframe countGravatar Jarred Sumner 1-4/+2
2022-11-09Fix broken stacktracesGravatar Jarred Sumner 2-9/+10
2022-11-09Add bun-types, add typechecking, add `child_process` types (#1475)Gravatar Colin McDonnell 1-13/+13
* Add bun-types to packages * Improve typing * Fix types in tests * Fix dts tests * Run formatter * Fix all type errors * Add strict mode, fix type errors * Add ffi changes * Move workflows to root * Add workflows * Remove labeler * Add child_process types * Fix synthetic defaults issue * Remove docs * Move scripts * Run prettier * Include examples in typechecking * captureStackTrace types * moved captureStackTrace types to globals * Address reviews Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu> Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
2022-11-09Error.captureStackTrace implementation (#1476)Gravatar Dylan Conway 10-0/+1252
* capture stack trace formatting, tests * fix callsite methods, stack formatting or undefined * isNative, tests for callsite methods * Update src/bun.js/bindings/ZigGlobalObject.cpp * Update src/bun.js/bindings/ZigGlobalObject.cpp * template and macros for visitchildren * static strings, handle infinity and clamp stacktracelimit Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2022-11-08Update bindings.cppGravatar Jarred Sumner 1-0/+1
2022-11-0820% faster TextDecoder on small inputsGravatar Jarred Sumner 2-4420/+3874
2022-11-07Update ZigGlobalObject.cppGravatar Jarred Sumner 1-2/+3
2022-11-07Return a rejected promise if there was an errorGravatar Jarred Sumner 1-0/+3
2022-11-07Visit all the fieldsGravatar Jarred Sumner 2-79/+111
2022-11-07Maybe fix bug with onExit callback?Gravatar Jarred Sumner 1-8/+3
2022-11-07Fix missing error in `process.nextTick` and `queueMicrotask`Gravatar Jarred Sumner 3-43/+137
2022-11-07[bun:test] Implement `done` callback with support for async functionsGravatar Jarred Sumner 2-1/+73
2022-11-07[bun:test] Implement `expect` in faster Zig bindingsGravatar Jarred Sumner 8-2372/+3834