aboutsummaryrefslogtreecommitdiff
path: root/src/js_parser/js_parser.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
2022-03-04upgrade zigjarred/upgrade-zig-2Gravatar Jarred Sumner 1-79/+88
2022-03-01[JS Parser] Fix bug with `super` from adding class static blocksGravatar Jarred Sumner 1-1/+12
2022-03-01[bun.js] Allow disabling runtime imports so bun can build for nodeGravatar Jarred Sumner 1-2/+5
2022-03-01[JS Parser] Make auto importing JSX a flag so the API is easierGravatar Jarred Sumner 1-295/+297
2022-02-27[TS] Make `export {type foo}` output consistent with TS parserGravatar Jarred Sumner 1-3/+45
2022-02-27[TS Parser] Implement `constructor(private foo)`Gravatar Jarred Sumner 1-1/+70
Input: ``` class Foo { constructor(public bar: string = "baz") {} bar: number; } ``` Output: ``` class Foo { bar; constructor(bar = "baz") { this.bar = bar; } baz; } ```
2022-02-27[JS Parser] Fix bug with unicode identifiersGravatar Jarred Sumner 1-2/+2
2022-02-27[JS Parser] #privateIdentifiersGravatar Jarred Sumner 1-105/+279
2022-02-27[JS Parser] Class Static Initialization BlocksGravatar Jarred Sumner 1-0/+62
https://github.com/tc39/proposal-class-static-block
2022-02-27[TS Parser] Support `export {type Foo}`Gravatar Jarred Sumner 1-13/+101
2022-02-24[JS Parser] ensure assertions are never run at runtimeGravatar Jarred Sumner 1-13/+18
2022-02-21Wrap some usages of `assert` in a conditionalGravatar Jarred Sumner 1-12/+15
See https://github.com/ziglang/zig/issues/10942
2022-02-18Use an `enum` for `Ref` instead of a buggy packed structGravatar Jarred Sumner 1-135/+129
Fixes a printing bug with `Symbol`
2022-02-18Simple dead code eliminationGravatar Jarred Sumner 1-176/+400
2022-02-18[JS Parser] fix bugs found from testsGravatar Jarred Sumner 1-24/+55
2022-02-18[JS Parser] Strip import assertionsGravatar Jarred Sumner 1-0/+43
Closes #4
2022-02-16[JS Parser] Fix several bugs with bindings and improve some errorsGravatar Jarred Sumner 1-77/+113
2022-02-16Update js_parser.zigGravatar Jarred Sumner 1-1/+0
2022-02-16[js parser] pool allocated names (perf)Gravatar Jarred Sumner 1-2/+26
2022-02-16[bun.js] Fix segfault when running many bun.js instancesGravatar Jarred Sumner 1-1/+1
2022-02-16symbol pool remnantsGravatar Jarred Sumner 1-6/+1
2022-02-15Revert "Remove usage of `packed` struct in Ref because packed is buggy in zig"Gravatar Jarred Sumner 1-211/+252
This reverts commit 2578f426b6d59080b0853164df83fe2b69740a7c.
2022-02-15Remove usage of `packed` struct in Ref because packed is buggy in zigGravatar Jarred Sumner 1-252/+211
2022-02-14move import processing into a separate functionGravatar Jarred Sumner 1-205/+203
2022-02-14[bun.js] Handle recursive macros and handle stack overflowGravatar Jarred Sumner 1-91/+95
2022-02-14[bun.js] Auto type coerction for macros!Gravatar Jarred Sumner 1-11/+197
2022-02-13[JS parser] Slightly better dead code elimination & optimize AST string ↵Gravatar Jarred Sumner 1-150/+185
comparison
2022-02-13[js parser] Fix test failure with `import {type foo}`Gravatar Jarred Sumner 1-13/+54
2022-02-10[tree shaking] Trim unused values in `var` when possibleGravatar Jarred Sumner 1-59/+76
2022-02-10[tree shaking] Fix bug with removing unused `const` / `let`Gravatar Jarred Sumner 1-5/+4
2022-02-08Move __exportDefault transform to parserGravatar Jarred Sumner 1-4/+34
2022-02-07Don't import __FastRefreshRuntime if it's a CJS transformGravatar Jarred Sumner 1-0/+1
2022-02-07Reduce debug build memory usageGravatar Jarred Sumner 1-22/+8
2022-02-07[JS Parser] Fix bug with `export default Foo` when `Foo` was a bundled importGravatar Jarred Sumner 1-2/+7
2022-02-07[TS] Implement `import {type foo} from 'bar';` (type inside clause)Gravatar Jarred Sumner 1-20/+90
2022-02-01Limit the number of pooled objectsGravatar Jarred Sumner 1-1/+1
2022-01-29Embed React Fast Refresh in BunGravatar Jarred Sumner 1-60/+75
Fixes https://github.com/Jarred-Sumner/bun/issues/62 If the project has it's own copy of react fast refresh and is bundling, it will use that instead.
2022-01-29Fix bug introduced in 97d17904Gravatar Jarred Sumner 1-1/+1
2022-01-29Slice onceGravatar Jarred Sumner 1-5/+8
2022-01-29Tag importsGravatar Jarred Sumner 1-0/+5
2022-01-28Update AST layout to store capacity for itemsGravatar Jarred Sumner 1-69/+68
We want to be able to push to the list
2022-01-22Make `Ref` more safeGravatar Jarred Sumner 1-1/+1
2022-01-22Use newer hash tableGravatar Jarred Sumner 1-18/+22
2022-01-22Update js_parser.zigGravatar Jarred Sumner 1-1/+1
2022-01-22Sort importsGravatar Jarred Sumner 1-0/+38
2022-01-21[macros] Always remove imports to macrosGravatar Jarred Sumner 1-41/+54
2022-01-19`fs.*Sync()`, `bun wiptest`, and More ™ (#106)Gravatar Jarred Sumner 1-0/+2
* 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}
2022-01-05[JS Parser] Reduce memory usage by ~8%Gravatar Jarred Sumner 1-4/+12
2022-01-04[Bun.js][bun dev] Support macros inside of Bun.jsGravatar Jarred Sumner 1-2/+9
Closes #36
2021-12-30Upgrade to latest Zig, remove dependency on patched version of Zig (#96)Gravatar Jarred Sumner 1-734/+531
* 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