aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/ZigGlobalObject.cpp (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-12-03`process.stdout` and `process.stderr`Gravatar Jarred Sumner 1-5/+1
2022-12-02Add `AbortSignal.timeout`Gravatar Jarred Sumner 1-0/+6
2022-12-01bun test `toStrictEqual` (#1568)Gravatar Dylan Conway 1-1/+1
* 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-013x faster `TextEncoder.prototype.encodeInto`Gravatar Jarred Sumner 1-9/+13
thanks to @Constellation for the tip
2022-11-30Accidentally deleted `prompt` as a result of the process.env changesGravatar Jarred Sumner 1-5/+1
2022-11-29:scissors:Gravatar Jarred Sumner 1-12/+1
2022-11-28Fix process.env and Bun.env object spreadGravatar Jarred Sumner 1-7/+11
Fixes https://github.com/oven-sh/bun/issues/1512
2022-11-25Enable Resizable ArrayBuffer proposalGravatar Jarred Sumner 1-0/+1
https://github.com/tc39/proposal-resizablearraybuffer
2022-11-23Bun.deepEquals and expect().toEqual() (#1548)Gravatar Dylan Conway 1-0/+31
* all of deepEquals * remove comment, tests, move inline function
2022-11-23possibly more reliable Bun.spawn (#1547)Gravatar Jarred Sumner 1-0/+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-19[napi] Fix missing instance data finalizerGravatar Jarred Sumner 1-0/+5
2022-11-15Update ZigGlobalObject.cppGravatar Jarred Sumner 1-3/+1
2022-11-14Fix crash in web crypto. caused by refptrGravatar Jarred Sumner 1-2/+7
2022-11-13Make node streams faster (#1502)Gravatar Jarred Sumner 1-1/+48
* 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-09Fix broken stacktracesGravatar Jarred Sumner 1-7/+6
2022-11-09Error.captureStackTrace implementation (#1476)Gravatar Dylan Conway 1-0/+226
* 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-07Update ZigGlobalObject.cppGravatar Jarred Sumner 1-2/+3
2022-11-07Visit all the fieldsGravatar Jarred Sumner 1-47/+57
2022-11-07Fix missing error in `process.nextTick` and `queueMicrotask`Gravatar Jarred Sumner 1-1/+102
2022-11-03Introduce `import.meta.primordials` for builtin JSGravatar Jarred Sumner 1-3/+84
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-02Update ZigGlobalObject.cppGravatar Jarred Sumner 1-1/+1
2022-11-02Fixes #1448 #1450Gravatar Jarred Sumner 1-6/+2
2022-10-28spaceGravatar Jarred Sumner 1-3/+3
2022-10-26Fix issue with `CryptoKey` and `SubtleCrypto` constructorsGravatar Jarred Sumner 1-26/+9
2022-10-25TCP & TLS Socket API (#1374)Gravatar Jarred Sumner 1-2/+2
* TCP Socket API * Wip * Add snippet for StringDecoder * Rename `close` to `stop`, replace `close` with `end` * Add a tcp echo server test * Some docs * Update README.md * Fix build * Update README.md Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2022-10-24`Bun.peek`Gravatar Jarred Sumner 1-0/+93
2022-10-23Add Web Crypto API (#1384)Gravatar Jarred Sumner 1-4/+74
* 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-18Implement `performance.timeOrigin`Gravatar Jarred Sumner 1-0/+6
2022-10-17add oniguruma for regex with variable length lookbehinds (#1329)Gravatar Dylan Conway 1-0/+19
* 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-10Process inherits from EventEmitterGravatar Jarred Sumner 1-1/+2
2022-10-09Missing codeGravatar Jarred Sumner 1-0/+1
2022-10-09Expose `Bun.version` and `Bun.revision`Gravatar Jarred Sumner 1-2/+16
2022-10-06Add simple Hot Module Reloading to bun's runtimeGravatar Jarred Sumner 1-0/+18
2022-10-05Expose private `@require` symbolGravatar Jarred Sumner 1-0/+5
2022-09-28Clean up some of the event loop codeGravatar Jarred Sumner 1-0/+12
2022-09-28Fix several bugs with Request body streaming + store small response bodies ↵Gravatar Jarred Sumner 1-4/+33
without an extra memory allocation
2022-09-22Faster `Blob` + begin to implement `FileSink`Gravatar Jarred Sumner 1-1/+26
2022-09-20Add `navigator.userAgent` , `navigator.hardwareConcurrency`Gravatar Jarred Sumner 1-0/+48
2022-09-17Explicitly enable ShadowRealmGravatar Jarred Sumner 1-0/+1
2022-09-14Make `crypto.getRandomValues()` faster + fix > 1 byte/element typed arraysGravatar Jarred Sumner 1-1/+21
Fix crypto.getRandomValues() with > 1 byte element typed arrays Fixes https://github.com/oven-sh/bun/issues/1237
2022-09-09Fix segfault due to GC and some more helper functions (#1221)Gravatar Zilin Zhu 1-2/+8
* Fix segfault due to GC and some more helper functions * fix upon reviews * add visitChildren
2022-09-08Add native helper functions for Readable and convert ReadableState ↵Gravatar Zilin Zhu 1-0/+10
properties to getter/setter (#1218)
2022-09-08Make some more globals modifiableGravatar Jarred Sumner 1-89/+58
2022-09-06Add native ReadableState (#1210)Gravatar Zilin Zhu 1-3/+27
* 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-208/+44
2022-09-04`[node:module]` Implement `_resolveFileName`, stub `_nodeModulePaths` & `_cache`Gravatar Jarred Sumner 1-4/+11
Closes https://github.com/oven-sh/bun/issues/1111
2022-09-03[Node API] Fix `napi_module_register`Gravatar Jarred Sumner 1-2/+0
2022-09-03Fix `createRequire()` in `node:module`Gravatar Jarred Sumner 1-43/+29
Fixes https://github.com/oven-sh/bun/issues/831 Fixes https://github.com/oven-sh/bun/issues/453
2022-09-03Plugin API (#1199)Gravatar Jarred Sumner 1-0/+44
* 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/+36
* Add native StringDecoder * fix upon reviews * add Constructor and use LazyClassStructure