aboutsummaryrefslogtreecommitdiff
path: root/src/js_parser.zig (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-02-13only if there are instance memberscreate-constructors-when-neededGravatar Dylan Conway 1-1/+1
2023-02-11fix string corruption in FS entry cache (#2055)Gravatar Alex Lam S.L 1-1/+1
2023-02-09[bun:test] Auto-import jest globals in test filesGravatar Jarred Sumner 1-0/+88
2023-01-26Fixes #1907Gravatar Jarred Sumner 1-1/+21
2023-01-23fix constructor statement order (#1883)Gravatar Dylan Conway 1-15/+6
* leave super alone * more tests
2023-01-20constructor parameter properties in class expressions (#1867)Gravatar Dylan Conway 1-8/+19
2023-01-20push super before generated statements (#1856)Gravatar Dylan Conway 1-29/+23
2023-01-20Add another testGravatar Jarred Sumner 1-1/+0
2023-01-20Fixes #1855Gravatar Jarred Sumner 1-5/+6
2023-01-16[JS Parser] Don't inline rope stringsGravatar Jarred Sumner 1-1/+3
2023-01-13[TypeScript transpiler] Fix bug with `export default class implements`Gravatar Jarred Sumner 1-5/+5
2023-01-13move more thingsGravatar Jarred SUmner 1-3/+3
2023-01-12Fixes #1772Gravatar Jarred Sumner 1-2/+3
2022-12-28Upgrade to latest Zig (#1610)Gravatar Jarred Sumner 1-411/+413
* @min and @max * builtins and some trivial ones * Most of them * more * more! * More Progress * wip * Update tagged_pointer.zig * Update http_client_async.zig * Most of the iterable dir changes * alright * Remove usages of deprecated formatters * :camera: * fmt * Update shimmer.zig * wip * wip * wip * progress * more * Latest * stuck on error * latest * workaround stage2 * wip * Update string_immutable.zig * wip * Migrate `Dirent` and `require("fs')` to use JSC<>Zig bindings * Fix build errors * Fixup most of the test failures * Fix `make headers` * Fix "outside package path" error * Fixup aligned alloc * Add missing file * linux * More linux fixes * use latest peechy * Fix transpiler test failure * Forgot about these * Fixup test failure * Update node-timers.test.ts * [node:htt] Fix `undefined is not an object` error Fixes https://github.com/oven-sh/bun/issues/1618 * Update http.exports.js * Make this test less flaky * fix hashes * Fix hex formatting and zls issues * Download zig version * Update Dockerfile * Update Dockerfile * Update uws * Update Dockerfile * Set llvm version * Update README.md * Update uws * Update Dockerfile * Update io_linux.zig * Update bun.zig * Log output * workaround strange @cInclude error * Make ffi tests better * Don't use cImport * Update c.zig * Update c-bindings.cpp * call setOutputDir * Update Dockerfile * Use a longer name * latest * Update serve.test.ts Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Veikka Tuominen <git@vexu.eu>
2022-12-17Missing from commitGravatar Jarred Sumner 1-23/+22
2022-12-17Fixes https://github.com/oven-sh/bun/issues/1624Gravatar Jarred Sumner 1-41/+1
This was disabled anyway
2022-12-15[js parser] Workaround symbol collision bugGravatar Jarred Sumner 1-1/+1
See https://github.com/oven-sh/bun/issues/1616 Fixes https://github.com/oven-sh/bun/issues/1594
2022-12-15[js parser] Skip appending empty statementsGravatar Jarred Sumner 1-1/+5
2022-12-15[js parser] Make `fnBodyContainsUseStrict` fasterGravatar Jarred Sumner 1-1/+4
2022-12-15[js parser] Ignore calls to import.meta.require that will never happenGravatar Jarred Sumner 1-0/+7
2022-12-15[js parser] Fix bug where `const {resolve} = require` throws "require is not ↵Gravatar Jarred Sumner 1-6/+19
defined"
2022-12-13Add missing ifGravatar Jarred Sumner 1-1/+2
2022-12-11[internal] further cleanup for `hoistSymbols`Gravatar Jarred Sumner 1-71/+87
2022-12-11fixupGravatar Jarred Sumner 1-26/+34
2022-12-11[internal] Change HashMap implementation for storing symbolsGravatar Jarred Sumner 1-35/+49
2022-12-11[transpiler] Never trim exportsGravatar Jarred Sumner 1-1/+1
2022-12-11[transpiler] Fix unbalanced class_name scopeGravatar Jarred Sumner 1-126/+137
surprised this was never caught sooner
2022-12-11Avoid re-visting AST nodes which create scopesGravatar Jarred Sumner 1-6/+19
2022-12-10[transpiler] Improve constant propagationGravatar Jarred Sumner 1-25/+119
2022-12-10:recycle:Gravatar Jarred Sumner 1-8/+8
2022-12-10Implement simple version of inlining single-use expressions and statementsGravatar Jarred Sumner 1-66/+690
2022-12-09Deprecate very incomplete Solid.js JSX transformGravatar Jarred Sumner 1-1133/+5
We don't have time to do a good job of this and Bun.plugin makes it possible to use Solid with Bun
2022-12-07disable assignment on user specified assignsGravatar Dylan Conway 1-4/+6
2022-12-07fix __require linker collision (#1585)Gravatar Dylan Conway 1-64/+85
2022-12-04[internal] Make string comparisons fasterGravatar Jarred Sumner 1-4/+4
2022-11-29import everything from "bun" where possibleGravatar Jarred Sumner 1-3/+3
2022-11-20[jsx] Disable `jsxs`Gravatar Jarred Sumner 1-31/+46
2022-11-10add ... switch case (#1482)Gravatar Dylan Conway 1-0/+12
2022-11-09Support TypeScript `satisfies`Gravatar Jarred Sumner 1-1/+2
Credit: @magic-akari, almost identical diff in https://github.com/evanw/esbuild/pull/2509/files#diff-ccc0bde7223236d93490b727b272f15765a2674be12a4c310b83b9555bef8816
2022-11-07[JS Parser] Do not perform the visit pass if the parse pass had "tolerable" ↵Gravatar Jarred Sumner 1-0/+15
errors
2022-11-06[TypeScript] Fix `export = value`Gravatar Jarred Sumner 1-0/+1
2022-11-01typescript decorators round 2 (#1445)Gravatar Dylan Conway 1-4/+221
* __decorateClass, __decorateParam, lit test, wiptest test * decorator factories test * parameter decorator test * test for decorators with constructor parameter properties * Fix issue with `CryptoKey` and `SubtleCrypto` constructors * Limit concurrency for GitHub Actions due to issues with cache poisoning If multiple actions are running, sometimes the cache is poisoned from another action. We need to fix this, but this is an interim measure to make actions less flaky * Make these tests better * Move this to dependencies so the .a files upload * Fixup * temporary fix * Limit concurrency for MacOS Object actions * try againn * againn * Make `"tls"` an explicit object we pass instead of implicit top-level options cc @Electroid @colinhacks * Update server.zig * Prefer `BUN_PORT` over `PORT` * Fix typo in homebrew action * Run homebrew action when release is edited * Check published_at instead of draft in GitHub action * Implement `process.release` * Add missing dependencies to `make devcontainer` * Allow overriding node polyfills via `BUN_OVERRIDE_MODULE_PATH` * Add a stub for io_darwin on linux cc @sno2 hopefully this helps but i'm not sure * Add missing `break` * Download more RAM * feat(core): optimize zig slice (#1408) * feat(core): optimize zig slice * address concerns * Remove webcrypto from vendor-without-check * Update default tsconfig (#1418) Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu> * Enable `BUN_OVERRIDE_MODULE_PATH` in `bun wiptest` * Upgrade WebKit * space * Support getting cached values and pending activity in the bindings generator * Remove :scissors: function * constructor creation, initializers, handle static and computed fields with decorators * Updating libuwebsockets C API (#1423) * fix for repeated regex match calls and fix for '^' in character classes (#1419) * tests and formatting * fix for ^ in character class * formatting * test for repeated match and exec calls * create oniguruma regex for each exec/test * check errorCode from creating oniguruma regexp and always return {} on failure * oops * call onig_initialize once * fix incorrect escaping, removed unnecessary oniguruma settings * tests for "-" and "^" in character classes * free regex object before returns * force gc for some tests * Update React fizz server (#1432) * Update fizz server * Use production build Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu> * more decorator tests * optional setup function for loading elements, simulate clicks in lit test * fix createWriteStream (#1433) * fix createWriteStream * remove comment * Update build docs and commands for dev containers (#1438) * Update build documentation for dev containers * Add devcontainer-rebuild make target * Add make devcontainer-sh target * Fix missing .PHONY for vendor-without-check (#1437) * Fix check for ninja on Debian/Ubuntu (#1436) Even though the package is named ninja-build, the ninja binary is still named ninja, so use `which ninja` to check for it * Fix #1410 woops * await on DOMContentLoaded for elements instead of setup function * avoid lowering class if no decorators Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Ashcon Partovi <ashcon@partovi.net> Co-authored-by: Carter Snook <cartersnook04@gmail.com> Co-authored-by: Colin McDonnell <colinmcd94@gmail.com> Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu> Co-authored-by: Ciro Spaciari <ciro.spaciari@gmail.com> Co-authored-by: Lawrence Chen <54008264+lawrencecchen@users.noreply.github.com> Co-authored-by: João Paquim <jpaquim@users.noreply.github.com>
2022-09-27Fix potential crash when TS code has an unexpected ")"Gravatar Jarred Sumner 1-4/+4
2022-09-26Add missing ignoreUsage callGravatar Jarred Sumner 1-0/+1
2022-09-21Fix `preact` & other "classic" jsx transforms, most likelyGravatar Jarred Sumner 1-20/+106
2022-09-11Resolve rope strings in dynamic import pathsGravatar Jarred Sumner 1-1/+1
Fixes https://github.com/oven-sh/bun/issues/1230
2022-09-06preserve statements when generating a separate module for bun pluginGravatar Jarred Sumner 1-2/+29
2022-09-05Support async `onLoad` callbacks in `Bun.plugin`Gravatar Jarred Sumner 1-8/+60
2022-09-03fixed is_export and added test cases (#1203)Gravatar Dylan Conway 1-1/+0
2022-08-20Fix crash on invalid JSXGravatar Jarred Sumner 1-1/+1