aboutsummaryrefslogtreecommitdiff
path: root/src/javascript/jsc/bindings/ZigGlobalObject.cpp (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-02-02"path" module from Node.js implementationGravatar Jarred Sumner 1-0/+5
2022-01-23Add C++ exception handlerGravatar Jarred Sumner 1-1/+1
2022-01-19`fs.*Sync()`, `bun wiptest`, and More ™ (#106)Gravatar Jarred Sumner 1-38/+113
* very very wip * almost ready to fix the errors * Update identity_context.zig * Update base.zig * [bun test] It runs successfully * Remove unnecessary call * [Bun.js] Improve JS <> Zig unicode string interop This fixes longstanding unicode bugs with `console.log` & `fetch`. I believe @evanwashere reported this first awhile ago * [Bun.js] Implement `Object.is()` binding and a way to set a timeout for script execution * Update PLCrashReport.zig * [Bun.js] Make `console.log` more closely match Node.js and Deno * [Bun.js] Implement formatting specifier for console.* * Implement `console.clear()` * bug fix * Support console.clear() * Buffer stderr * [bun test] Begin implementing Node.js `fs` * Update darwin_c.zig * Implement more of `fs` * `mkdir`, `mkdir` recursive, `mkdtemp` * `open`, `read` (and pread) * Move some things into more files * Implement readdir * `readFile`, `readLink`, and `realpath` * `writeFile`, `symlink`, `chown`, `rename`, `stat`, `unlink`, `truncate` * `lutimes` * Implement `SystemError` and begin wiring up the `fs` module * `"fs"` - Most of the arguments / validation * `fs` - Rest of the arguments / validations * Begin wiring up the `fs` module * Fix all the build errors * support printing typed arrays in console.log * It...works? * Support `require("fs")`, `import fs from 'fs';`, `import * as fs from 'fs'` * Fix a couple bugs * get rid of the crash reporter for now * Update fs.exports.js * [bun.js] slight improvement to startup time * [bun.js] Improve error message printing * [Bun.js] Add `Bun.gc()` to run the garbage collector manually and report heap size * [Bun.js] Add Bun.generateHeapSnapshot to return what JS types are using memory * [Bun.js] Add `Bun.shrink()` to tell JSC to shrink the VM size * Improve encoding reader * [bun.js] Improve callback & microtask performance * Update node_fs.zig * Implement `console.assert` * simple test * [Bun.js] Prepare for multiple globals/realms to support testing * Create callbacks-overhead.mjs * Update http.zig * [Bun.js] Implement `queueMicrotask` * Add test for queueMicrotask * :sleepy: * [Bun.js] Implement `process.versions`, `process.pid`, `process.ppid`, `process.nextTick`, `process.versions`, * Implement `process.env.toJSON()` * [Bun.js] Improve performance of `fs.existsSync` * :nail_care: * [Bun.js] Implement `process.chdir(str)` and `process.cwd()`, support up to 4 args in `process.nextTick` * Make creating Zig::Process lazy * Split processi nto separte file * [Bun.js] Node.js Streams - Part 1/? * [Bun.js] Node.js streams 2/? * WIP streams * fix crash * Reduce allocations in many places * swap * Make `bun` start 2ms faster * Always use an apiLock() * libBacktrace doesn't really work yet * Fix crash in the upgrade checker * Clean up code for importing the runtime when not bundling * :camera: * Update linker.zig * 68! * backtrace * no, really backtrace * Fix * Linux fixes * Fixes on Linux * Update mimalloc * [bun test] Automatically scan for {.test,_test,.spec,_spec}.{jsx,tsx,js,cts,mts,ts,cjs}
2021-12-30Upgrade to latest Zig, remove dependency on patched version of Zig (#96)Gravatar Jarred Sumner 1-92/+93
* Prepare to upgrade zig * zig fmt * AllocGate * Update data_url.zig * wip * few files * just headers now? * I think everything works? * Update mimalloc * Update hash_map.zig * Perf improvements to compensate for Allocgate * Bump * :camera: * Update bun.lockb * Less branching * [js parser] Slightly reduce memory usage * Update js_parser.zig * WIP remove unused * [JS parser] WIP support for `with` keyword * Remove more dead code * Fix all the build errors! * cleanup * Move `network_thread` up * Bump peechy * Update README.md
2021-12-28dead codeGravatar Jarred Sumner 1-6/+1
2021-12-17👶event loopGravatar Jarred Sumner 1-4/+11
2021-10-30[Bun.js] Enable SharedArrayBufferGravatar Jarred Sumner 1-0/+3
2021-10-29[internal] This is no longer a feature flag in JSCGravatar Jarred Sumner 1-1/+0
2021-10-23Add "process.env" to global objectGravatar Jarred Sumner 1-16/+31
2021-10-02Linux works now.Gravatar Jarred SUmner 1-8/+9
2021-10-01Build stuffGravatar Jarred SUmner 1-1/+1
2021-09-26Add `JSArrayIterator`, don't call JSC::Options after JSC already loaded once ↵Gravatar Jarred Sumner 1-9/+13
(that causes a crash)
2021-09-15Big Heap:Gravatar Jarred Sumner 1-5/+2
2021-09-09fetc h!!!Gravatar Jarred Sumner 1-10/+5
2021-09-08Fixes for AARCH64:Gravatar Jarred Sumner 1-8/+13
2021-09-07WIP error cssGravatar Jarred Sumner 1-1/+1
Former-commit-id: 36f03bf491cf274f68361e334a706538464ee271
2021-09-05guessGravatar Jarred Sumner 1-1/+7
Former-commit-id: 6e95bd8a1457d3c514adb0af6ae0c5feb1564a80
2021-09-05more mutexesGravatar Jarred Sumner 1-5/+5
Former-commit-id: 52966012b4b74d24ab28a0c75740aef35fb75327
2021-09-04Fixed memory leaks, but SSR is slower. Should move cleanup & restart steps ↵Gravatar Jarred Sumner 1-24/+96
to a real idle timeout Former-commit-id: 9499ee3109cb336deb9380f0190631a30c9da51c
2021-08-31Add display name field to frameworks, improve logging, add counters, addGravatar Jarred Sumner 1-1/+1
Former-commit-id: b2cf011b6c6405a786fe22367e1cd4e6c2c4c90f
2021-08-15rename to bunGravatar Jarred Sumner 1-1/+1
Former-commit-id: f982fc85fac3f0120e1851ad4027dd8413216439
2021-08-13lateGravatar Jarred Sumner 1-2/+38
Former-commit-id: 1d598bb05a3bac62d86063125e1fe2962f0b5cc6
2021-08-09Split up + generate client & server bundles, support framework +router in ↵Gravatar Jarred Sumner 1-10/+20
GenerateNodeModulesBundle , read framework from package.json + rename "publicURL" to "origin" + add import.meta.filepath Former-commit-id: 1e76ebb5375247231181ec19a6396c6acf4684fb
2021-08-05alright server-side reloading code worksGravatar Jarred Sumner 1-4/+60
Former-commit-id: a49ef52eec1037014e3c9cda1a09f387a01116b8
2021-08-03ThreaderGravatar Jarred Sumner 1-0/+1
Former-commit-id: a13dd6402f54527e87e9afdbbf48e5ff1501c8f9
2021-08-02fix errorsGravatar Jarred Sumner 1-7/+12
Former-commit-id: ac66d6af52f6a2340c57a957bed078f94a8cf8ed
2021-08-01hmGravatar Jarred Sumner 1-4/+8
Former-commit-id: 0dc1c1a74b845d037326f4f2facd786924ca722e
2021-07-30little bit of errors, little bit of bytecode caching. neither finishedGravatar Jarred Sumner 1-156/+164
Former-commit-id: c774c395136d58330aa7cad7e9fa434bcef7d5c6
2021-07-28esmodules work?Gravatar Jarred Sumner 1-4/+4
Former-commit-id: 5cb5af4416c12518eb195d1b310990fc5c94d6c8
2021-07-28JSClassRef globals work!Gravatar Jarred Sumner 1-20/+38
Former-commit-id: b1d3eb19872b2c09bda3e9e3b3a4c1f40c3b6a6d
2021-07-28WIPGravatar Jarred Sumner 1-39/+80
Former-commit-id: 60cc85dc0652b34e9c7ec409f32ba635cc4b2e51
2021-07-27alright console.log works at leastGravatar Jarred Sumner 1-10/+24
Former-commit-id: 35b5bb035be33001a3c2accbe590bb5312ea4b04
2021-07-26coolGravatar Jarred Sumner 1-11/+14
Former-commit-id: a7214ab61c42f1454a8e17c633085f12ed6bef5a
2021-07-24wipGravatar Jarred Sumner 1-0/+164
Former-commit-id: 796a9854b4a698b309a6e7a4c040047558858da6