aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/ZigGlobalObject.h (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-02-13Implement `FormData` (#2051)Gravatar Jarred Sumner 1-2/+3
* 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-02-03Introduce `await Bun.sleep(ms)`Gravatar Jarred Sumner 1-0/+3
2023-01-27Make `Bun.dns` lazyGravatar Jarred Sumner 1-0/+3
2023-01-22[EventEmitter] Preserve `this` in event emitter callbacksGravatar Jarred Sumner 1-0/+1
2023-01-17Fix lifetime issue in require.resolveGravatar Jarred Sumner 1-0/+5
2023-01-10attempt (unsuccessfully) to improve c++ build timeGravatar Jarred Sumner 1-114/+1
2023-01-0410x faster `new Buffer` (#1717)Gravatar Jarred Sumner 1-0/+7
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-12-17Delete Oniguruma (#1625)Gravatar Jarred Sumner 1-5/+0
* 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-02Add `AbortSignal.timeout`Gravatar Jarred Sumner 1-0/+1
2022-12-013x faster `TextEncoder.prototype.encodeInto`Gravatar Jarred Sumner 1-2/+2
thanks to @Constellation for the tip
2022-11-30Accidentally deleted `prompt` as a result of the process.env changesGravatar Jarred Sumner 1-2/+0
2022-11-29:scissors:Gravatar Jarred Sumner 1-1/+0
2022-11-28Fix process.env and Bun.env object spreadGravatar Jarred Sumner 1-0/+1
Fixes https://github.com/oven-sh/bun/issues/1512
2022-11-19Implement a singleton version of `napi_get_instance_data` and ↵Gravatar Jarred Sumner 1-0/+7
`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-14Fix crash in web crypto. caused by refptrGravatar Jarred Sumner 1-0/+7
2022-11-13Make node streams faster (#1502)Gravatar Jarred Sumner 1-0/+3
* 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-09Error.captureStackTrace implementation (#1476)Gravatar Dylan Conway 1-0/+12
* 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-07Visit all the fieldsGravatar Jarred Sumner 1-32/+54
2022-11-07Fix missing error in `process.nextTick` and `queueMicrotask`Gravatar Jarred Sumner 1-0/+5
2022-11-03Introduce `import.meta.primordials` for builtin JSGravatar Jarred Sumner 1-0/+3
the `import.meta` object in Bun now has a `primordials` object which makes a handful of globals safe for access. Inside of bun: or node: modules, it is a special object (ownKeys is not implemented, so Object.keys() wont work on it) - Array - String - `isPromise` - `isCallable` - `isConstructable` - `tryGetById(foo, "bar')` which is like foo?.bar - `arrayPush` which is like `Array.prototype.push` - `Bun` - `isAbortSignal` cc @ThatOneBro @lawrencecchen
2022-11-02Fix missing functionsGravatar Jarred Sumner 1-1/+8
2022-10-23Add Web Crypto API (#1384)Gravatar Jarred Sumner 1-1/+8
* Add Web Crypto API * Duplicate symbols * Update c_cpp_properties.json Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-10-17add oniguruma for regex with variable length lookbehinds (#1329)Gravatar Dylan Conway 1-0/+5
* added pcre2 submodule * pcre2 regex boilerplate * tests for pcre2 regex * flag validation, getters, construct and compile mostly working * string escaping for source and toString(), exec, more tests * flag sorting, match, matchAll, search, split, replace * remove lib link * add destructor to PCRE2RegExp * header include * removed ternary * switched to oniguruma for regex library * revert sql changes * fix indices flag, add tests * revert settings * working error messages * more tests for lastIndex, fix logic for compile and lastIndex * move oniguruma lib to deps out dir
2022-10-06Add simple Hot Module Reloading to bun's runtimeGravatar Jarred Sumner 1-0/+3
2022-09-28Clean up some of the event loop codeGravatar Jarred Sumner 1-1/+8
2022-09-22Faster `Blob` + begin to implement `FileSink`Gravatar Jarred Sumner 1-0/+9
2022-09-20meant to include this in the previous commitGravatar Jarred Sumner 1-0/+4
2022-09-17Fix napi module registrationGravatar Jarred Sumner 1-0/+4
Fixes https://github.com/oven-sh/bun/issues/1240
2022-09-08Make some more globals modifiableGravatar Jarred Sumner 1-0/+7
2022-09-06workaround test failureGravatar Jarred Sumner 1-0/+11
2022-09-06Add native ReadableState (#1210)Gravatar Zilin Zhu 1-0/+10
* use functionSpace for JSStringDecoderConstructor and fix console.log on prototype * Add native ReadableState * move kPaused to class property
2022-09-05Support async `onLoad` callbacks in `Bun.plugin`Gravatar Jarred Sumner 1-2/+19
2022-09-03[Node API] Fix `napi_module_register`Gravatar Jarred Sumner 1-0/+6
2022-09-03Plugin API (#1199)Gravatar Jarred Sumner 1-0/+5
* Plugin API * Fix the bugs * Implement `"object"` loader Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-09-01Add native StringDecoder (#1188)Gravatar Zilin Zhu 1-0/+5
* Add native StringDecoder * fix upon reviews * add Constructor and use LazyClassStructure
2022-08-27Update WebKit (#1165)Gravatar Jarred Sumner 1-0/+74
* Update WebKit * Fix `DataView` and non-8 bit sized typed arrays with TextDecoder * New WebKit Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-08-17slightly improve streams perfGravatar Jarred Sumner 1-0/+3
2022-08-17New Zig <> C++ bindings generator. +20% faster HTTP serverGravatar Jarred Sumner 1-0/+6
2022-08-12Update WebKitGravatar Jarred Sumner 1-0/+6
2022-08-12Faster performance.now()Gravatar Jarred Sumner 1-0/+4
2022-08-08Raise error on unhandled rejected promises (#1010)Gravatar Zilin Zhu 1-1/+4
* deal with unhandled rejected promise * use Vector<Strong<JSPromise>> to store rejected promises
2022-07-04Improve the performance of performanceGravatar Jarred Sumner 1-2/+5
2022-07-01Move ImportMeta into it's own objectGravatar Jarred Sumner 1-2/+19
2022-06-30Create `process` object lazilyGravatar Jarred Sumner 1-0/+14
2022-06-26wip ReadableStream for HTTP(s) ServerGravatar Jarred Sumner 1-0/+17
2022-06-25Cleanup some of the require codeGravatar Jarred Sumner 1-0/+2
2022-06-24Add dynamic require supportGravatar Jarred Sumner 1-0/+2
2022-06-22change the directory structurejarred/renameGravatar Jarred Sumner 1-0/+261