aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-11-19Introduce `BUN_GARBAGE_COLLECTOR_LEVEL` debug environment variableGravatar Jarred Sumner 5-26/+81
2022-11-19Fix a GC issue with `Bun.spawn`Gravatar Jarred Sumner 6-1037/+999
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 13-62/+523
* 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 5-17/+19
2022-11-16`console.timeLog()` but no extra arguments yetGravatar Jarred Sumner 1-3/+21
2022-11-16Mark some more commonjs modulesGravatar Jarred Sumner 2-7/+34
2022-11-16Remove incorrect assertionGravatar Jarred Sumner 1-3/+1
2022-11-16Make `node:http`.createServer work betterGravatar Jarred Sumner 4-38/+101
2022-11-15Fix another assertion failureGravatar Jarred Sumner 1-1/+1
2022-11-15Fix assertion failureGravatar Jarred Sumner 1-0/+4
2022-11-15Fixes #1403Gravatar Jarred Sumner 1-11/+16
cc @Electroid this should fix the fly.io api issue too
2022-11-15Never resize on closeGravatar Jarred Sumner 1-2/+6
2022-11-15Handle blocking initial readGravatar Jarred Sumner 1-0/+18
2022-11-15Prevent blocking write()Gravatar Jarred Sumner 1-75/+89
2022-11-15add generated getter/setter type with thisValue (#1513)Gravatar Dylan Conway 6-38/+107
2022-11-15Update ZigGlobalObject.cppGravatar Jarred Sumner 1-3/+1
2022-11-14Fix spawn macOS issueGravatar Jarred Sumner 1-7/+11
2022-11-14Fix crash in web crypto. caused by refptrGravatar Jarred Sumner 3-2/+15
2022-11-14Fix crashiness with `process.env`Gravatar Jarred Sumner 1-27/+54
This also makes it a lot slower
2022-11-14Fix string encoding issue in JSC C API usagesGravatar Jarred Sumner 3-139/+74
2022-11-14Fix build errorGravatar Jarred SUmner 1-1/+1
2022-11-14Bugfixes and perf improvements to child_processGravatar Jarred SUmner 8-176/+338
2022-11-13use `write$NOCANCEL`, more loggingGravatar Jarred Sumner 2-12/+41
2022-11-13Add missing `rmdir` exportGravatar Jarred Sumner 1-1/+2
2022-11-13Make node streams faster (#1502)Gravatar Jarred Sumner 20-293/+724
* 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-12Fix infinite write loop on LinuxGravatar Jarred SUmner 1-44/+159
2022-11-12Redo how we poll pipes (#1496)Gravatar Jarred Sumner 12-528/+978
* Fix pipe * Handle unregistered * Fix failing test
2022-11-11Add test that fails on linuxGravatar Jarred Sumner 4-21/+7
2022-11-112 framesGravatar Jarred Sumner 1-1/+1
2022-11-11Improve error messageGravatar Jarred Sumner 1-2/+14
2022-11-11Replace `libbacktrace` with `WTFGetBacktrace`Gravatar Jarred Sumner 3-1/+36
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-09Implement Server.publish()Gravatar Jarred Sumner 1-0/+61
Fixes https://github.com/oven-sh/bun/issues/1417
2022-11-09Update server.zigGravatar Jarred Sumner 1-0/+3
2022-11-09Fix crash when an exception occurs in open()Gravatar Jarred Sumner 1-6/+15
2022-11-09Clone all the stringsGravatar Jarred Sumner 1-7/+7
2022-11-09Clone the textGravatar Jarred Sumner 1-1/+1
2022-11-09Remove bun:wrap from stack tracesGravatar Jarred Sumner 1-0/+32
2022-11-09Add another logGravatar Jarred Sumner 1-1/+3
2022-11-09Fix broken stacktracesGravatar Jarred Sumner 2-9/+10
2022-11-09fix(child_process): fix execFileSync options.input (#1479)Gravatar Derrick Farris 1-37/+30
* fix(child_process): fix execFileSync options.input * fix(child_process): debug err, check for Uint8Array too * fix(child_process): fix ArrayBufferIsView call * test(child_process): fix missing toString() call on test result * refactor(child_process): change options.input to input to getter calls
2022-11-09Add bun-types, add typechecking, add `child_process` types (#1475)Gravatar Colin McDonnell 15-361/+813
* 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-09Fix #1354Gravatar Jarred Sumner 2-13/+40
2022-11-09Update response.zigGravatar Jarred Sumner 1-3/+2
2022-11-09Error.captureStackTrace implementation (#1476)Gravatar Dylan Conway 11-0/+1276
* 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-08Fixes #1426Gravatar Jarred Sumner 1-1/+4
2022-11-08Fix incorrectly reporting URL sizes to GC in some casesGravatar Jarred Sumner 1-1/+11