aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-05-20[bun:jsc] Rewrite `describe` -> `jscDescribe` to not confuse them in ↵Gravatar Jarred Sumner 2-4/+10
autocomplete
2023-05-20Bun.inspect gets a max depth of 32Gravatar Jarred Sumner 1-0/+1
2023-05-20[bun:test] Make forEachPropertyOrdered behave closer to forEachPropertyGravatar Jarred Sumner 1-4/+41
When diffing, we were missing some properties due to not calling getters and other types of properties This led to situations where Bun.deepEquals would report false and then display no difference This aligns the behavior closer to forEachProperty cc @dylan-conway please let me know if this is going to break anything
2023-05-20[console.log] Set depth limit to 8Gravatar Jarred Sumner 1-19/+65
Towards #198
2023-05-20[internal] Make `JSC.NewFunction` more type safeGravatar Jarred Sumner 3-8/+9
2023-05-20[internal] Show the file path to the calling function from JSGravatar Jarred Sumner 2-0/+2519
2023-05-20Implement `test.todo` (#2961)Gravatar Degreat 6-9/+177
* Implement `test.todo` * remove skip condition * Allow callbacks in .todo * Add descriptive comment * Log todos * Include tests in title * edit test.todo tests --------- Co-authored-by: dave caruso <me@paperdave.net>
2023-05-20[bun:test] Fix bug where indexed properties would print "undefined" in diffsGravatar Jarred Sumner 1-16/+24
2023-05-20[bun:test] Fix bug where indexed properties would print "undefined" in diffsGravatar Jarred Sumner 3-0/+33
2023-05-20Support test timeouts in `bun:test` (#2969)Gravatar Jarred Sumner 8-13/+140
* [bun:test] Support timeouts in `test` * make this test more resilient * :scissors: --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-19smolGravatar Jarred Sumner 1-0/+4
2023-05-19fix #2964 (#2965)Gravatar e3dio 1-0/+1
2023-05-19console.log changes (#2966)Gravatar Jarred Sumner 5-82/+82
* [breaking] Don't quote property names of identifiers in console.log * Make UTF-16 strings green * always quote for jest * update tests * Update this --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-19ensure unused variable is not eliminatedGravatar Jarred Sumner 1-0/+2
2023-05-19Fix failing node:vm testsGravatar Jarred Sumner 2-10/+22
2023-05-19Add tests for `node:vm`Gravatar Ashcon Partovi 1-0/+213
2023-05-19make sure `key` is added to args (#2968)Gravatar Dylan Conway 1-9/+7
2023-05-19[node:vm] Fix crash in syntax error in `runinThisContext`Gravatar Jarred Sumner 1-2/+2
2023-05-19[`node:vm`] Handle exceptions in `runInThisContext` and `runInContext`Gravatar Jarred Sumner 1-28/+47
2023-05-19resolve rope string for multipart template (#2963)Gravatar Dylan Conway 2-4/+31
* resolve rope for multipart template * fix tests * clone template part if it is `e_string` and folded * clone string only * don't clone data again
2023-05-19update docs hot.md (#2954)Gravatar e3dio 1-3/+3
* Update hot.md * Update hot.md
2023-05-19Add tests for `--compile` tests (#2901)Gravatar dave caruso 4-112/+300
* add compile test support * add react ssr test * add tests * Fix flaky compile test @paperdave we can't pass a non-zero port or it will be flaky --------- Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-19Make `node-fetch` polyfill better (#2962)Gravatar Jarred Sumner 2-4/+109
* Make `node-fetch` polyfill better * fixup * Test using localhost * Add comment --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-19Add snippet for node:vmGravatar Jarred Sumner 1-0/+42
2023-05-19[node:vm] Make `vm.runInThisContext` 10x fasterGravatar Jarred Sumner 5-83/+286
2023-05-19Fix typo (#2959)Gravatar Zbyszek Tenerowicz 1-1/+1
2023-05-18set `node_allocator` for sourcemap joiner (#2953)Gravatar Dylan Conway 2-18/+20
2023-05-18Make node:vm 12x fasterGravatar Jarred Sumner 3-10/+39
2023-05-18[node:vm] Propagate global properties defined on the new context objectGravatar Jarred Sumner 2-16/+26
2023-05-18clang-formatGravatar Jarred Sumner 1-14/+15
2023-05-18Implement `node:vm` (#2785)Gravatar Silver 7-46/+482
* feat: begin implementing node:vm Script object * refactor: clean up and address review comments * refactor: rename Script to VMModuleScript * fix: expose VMModuleScript.prototype also oops I forgot to commit the new files last time * feat(vm): Implement contexts and scripts * feat(vm): implement globalThis * feat(vm): expose node:vm module with global helper functions * refactor(vm): rename VMModuleScript to NodeVMScript * feat: implement script options * doc: add TODOs for runIn*Context options
2023-05-18Fixes #2924Gravatar Jarred Sumner 1-0/+8
2023-05-18handle when cwd is not writable, attempt to use tmp dir explicitlyGravatar Jarred Sumner 2-2/+32
Fixes https://github.com/oven-sh/bun/issues/2944
2023-05-18BumpGravatar Jarred Sumner 1-1/+1
2023-05-18Fixes #2946 (#2949)Gravatar Jarred Sumner 3-2/+57
* Fixes #2946 * Update string_mutable.zig * Fixes #2948 --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-18Fixes #2942 (#2947)Gravatar Jarred Sumner 2-1/+154
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-18Implement `expect().toBeCloseTo()` (#2870)Gravatar Degreat 4-3/+167
2023-05-18use raw template contents for tagged templates (#2937)Gravatar Dylan Conway 4-33/+67
* use raw template contents when tagged * use union for template contents * pointer to cooked contents * raw if suffix * fix and don't skip test
2023-05-18Fixes #2928 (#2939)Gravatar Jarred Sumner 4-43/+113
* Fixes #2928 * another case * Fix console.log with utf-16 string mismatched quotes * Fix issue with json * Even more cases --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-05-17Update fs.test.tsGravatar Jarred Sumner 1-7/+10
2023-05-17Mention setting `target` to `"node"` or `"bun"` when a ResolveMessage occurs ↵Gravatar Jarred Sumner 1-2/+2
for a Node.js builtin
2023-05-17Fixes https://github.com/oven-sh/bun/issues/2931Gravatar Jarred Sumner 2-1/+30
2023-05-17Update benchmarking.mdGravatar Jarred Sumner 1-1/+1
2023-05-17Support static string values in our class bindings generatorGravatar Jarred Sumner 2-2/+26
2023-05-17Make `BuildError` and `ResolveError` use C++ instead of JSC C APIGravatar Jarred Sumner 23-515/+2067
Fixes memory leak with private data never being cleared Fixes a case where a ResolveError could actually be a BuildError
2023-05-17Update json-parse-stringify.mjsbun-v0.6.2Gravatar Jarred Sumner 1-2/+2
2023-05-17microbenchmark for json.parse / stringifyGravatar Jarred Sumner 1-0/+57
2023-05-17BumpGravatar Jarred Sumner 6-28/+28
2023-05-17Merge branch 'jarred/webkit-upgrade-may-17'Gravatar Jarred Sumner 21-33/+53
2023-05-17Finish bumpingjarred/webkit-upgrade-may-17Gravatar Jarred Sumner 8-7/+36