import { __HMRClient as Bun } from "http://localhost:8080/bun:wrap"; Bun.activate(true); import { __FastRefreshModule as FastHMR } from "http://localhost:8080/bun:wrap"; import { __FastRefreshRuntime as FastRefresh } from "http://localhost:8080/bun:wrap"; var hmr = new FastHMR(326432150, "array-args-with-default-values.js", FastRefresh), exports = hmr.exports; (hmr._load = function() { var lines; const data = () => lines.map(([a = null, b = null, c = null, d = null]) => ({ a, b, c, d })); function test() { let ran = false; lines = [ [undefined, undefined, undefined, undefined], [undefined, undefined, undefined, undefined], [undefined, undefined, undefined, undefined], [undefined, undefined, undefined, undefined] ]; for (let foo of data()) { console.assert(foo.a === null); console.assert(foo.b === null); console.assert(foo.c === null); console.assert(foo.d === null); ran = true; } console.assert(ran); testDone(import.meta.url); } hmr.exportAll({ test: () => test }); })(); var $$hmr_test = hmr.exports.test; hmr._update = function(exports) { $$hmr_test = exports.test; }; export { $$hmr_test as test }; //# sourceMappingURL=http://localhost:8080/array-args-with-default-values.js.map Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/bench/snippets/buffer.js (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2022-07-11Fixed broken links on the Bun.serve benchmark (#590)Gravatar B E C H 1-3/+3
Fixed the broken links to the Bun.serve benchmark sources.
2022-07-11Update javascript.zigbun-v0.1.3Gravatar Jarred Sumner 1-2/+0
2022-07-11woopsGravatar Jarred Sumner 1-1/+1
2022-07-11[integration test scripts] `bun` -> `bun dev`Gravatar Jarred Sumner 3-4/+4
2022-07-11Revert changes to integration test scripts that break macOS testsGravatar Jarred Sumner 8-98/+58
2022-07-11Update build-idGravatar Jarred Sumner 1-1/+1
2022-07-11feat(core): implement web interaction APIs (#528)Gravatar Carter Snook 3-7/+358
* feat(core): implement web interaction APIs * fix(core): adjust web prompt code and add types
2022-07-11[resolver] Stripe `file://` from import pathsGravatar Jarred Sumner 2-5/+17
2022-07-11Fixes https://github.com/oven-sh/bun/issues/195Gravatar Jarred Sumner 3-3/+70
2022-07-11Revert "Fix: NotSameFileSystem at clonefile (#546)" (#581)Gravatar Jarred Sumner 1-1/+1
This reverts commit 2659febd1b74e8215ff7dbfb2d1b19f4b4f8a71a.
2022-07-11feat(types): Add types for node modules and various fixing (#470)Gravatar Snazzah 24-60/+23551
* fix(types): add __dirname and __filename as deprecated types * fix(types): add stream() method to Blob * fix(types): update getRandomValues in Crypto * fix(types): add buffer type defs * fix(types): remove buffer type setting in fs * fix(types): extend TypedArray in crypto.getRandomValues Co-authored-by: Carter Snook <cartersnook04@gmail.com> * fix(types): add notes to some buffer methods * fix(types): remove since jsdoc comments from buffer * chore(types): fix bundle script and build types * fix(types): update bundle script This really shouldn't do anything differently, but it no longer hangs whenever I bundle types. Not sure if anyone else has this problem but, ehhhh... * fix(types): remove unused types in buffer * feat(types): add assert module types * feat(types): add events module types * feat(types): add os module types * feat(types): add domain module types * fix(types): add process.isBun type * feat(types): add util module types * feat(types): add querystring module types * feat(types): add process module types * feat(types): add string_decoder module types * feat(types): add sys module types * feat(types): add timers module types * feat(types): add stream module types * feat(types): add crypto module types fix(types): fix types for stream, timers and util modules * feat(types): add constants module types * feat(types): add url module types * feat(types): add tty module types * feat(types): add http module types * feat(types): add https module types * feat(types): add punycode module types * feat(types): add zlib module types * feat(types): add supports-color module types Co-authored-by: Carter Snook <cartersnook04@gmail.com>
2022-07-11fix: environment typo (#568)Gravatar Carlos Gabriel Vilas Novas Soares 1-3/+3
2022-07-11Cleanup discord-interactions readme (#451)Gravatar CharlieS1103 1-1/+1
2022-07-11Fix: NotSameFileSystem at clonefile (#546)Gravatar Aditya Gupta 1-1/+1
Fixes issue #531 Before this, using 'bun install' on a directory in different filesystem such as tmpfs (/tmp) would have caused "Error: NotSameFileSystem". This commit fixes that by handling this error, and at end of function it will fall back to use copyfile (same as --backend=copyfile)
2022-07-11Updated typo in example (#573)Gravatar rml1997 1-2/+2
Changed deocder to decoder
2022-07-11Fixes https://github.com/oven-sh/bun/issues/561Gravatar Jarred Sumner 3-14/+56
2022-07-11[js] Include TypedArray type name for empty arraysGravatar Jarred Sumner 1-16/+16
2022-07-11[js] When `console.log` typed arrays, include the type name and limit ↵Gravatar Jarred Sumner 1-12/+17
printed count to 512
2022-07-11Fixes https://github.com/oven-sh/bun/issues/229Gravatar Jarred Sumner 4-6/+56
2022-07-11Bump zig buildGravatar Jarred Sumner 1-1/+1
2022-07-11Move symbolGravatar Jarred Sumner 1-3/+7
2022-07-11Run prettierGravatar Jarred Sumner 1-10/+25
2022-07-11Fix broken buildGravatar Jarred Sumner 1-1/+1
2022-07-11[bun wiptest] Fix copyGravatar Jarred Sumner 1-1/+1
2022-07-11add depd browser polyfill (#517)Gravatar evan 2-0/+89
2022-07-11Fix macOS build (#525)Gravatar thislooksfun 3-94/+103
* style: remove some trailing whitespace * docs: make `identifier-cache` _before_ `jsc` Running them the other way around results in a failed build. * docs: `npm i` in both `test/snippets` _and_ `test/scripts` `test/scripts` has node packages as well. If they aren't installed, then some of the tests fail to start. * docs: add `rust` to list of homebrew packages One of the dependencies tries to run `cargo`, and will fail the build if it can't. The `cargo` command is provided by the `rust` brew package. * docs: clean up section on macOS code signing This requirement applies to _all_ macOS builds, not just those on Apple Silicon, and also had some slightly confusing wording. * build: remove leading whitespace from flags This leading whitespace was making my system treat the argument as a file with name ` -L$(LLVM_PREFIX)/lib` (leading whitespace included), instead of as a library path argument. * build: try llvm@13 first, then fall back on bare llvm The macOS instructions say to install `llvm@13`, which has a different path than the bare `llvm` install (`brew --prefix llvm@13` != `brew --prefix llvm`). This patch takes a slightly smarter approach: 1. If the user defined `LLVM_PREFIX` and it points to a valid path on disk, use that. 2. If `LLVM_PREFIX` is NOT a valid path, try setting it to the `llvm@13` path. 3. If it's STILL not a valid path, try the plain `llvm` path 4. If it's STILL not valid, set it to a user-friendly error. There might be a better solution for doing this, I'm not well-versed in Makefile syntax, but it's at least slightly better than it was before. * fix(build): update cast signature `std.math.cast` was changed in 0e6285c8fc31ff866df96847fe34e660da38b4a9. It used to throw if the cast would overflow, but now it returns `null` instead.
2022-07-10Update GitHub URL to match new repo URL (#547)Gravatar Aurora Luna Takemi 22-47/+47
* Update repo URLs * GitHub URL update * Revert accidental URL changes
2022-07-10chore(feature-request): change feature request to enhancementGravatar Hyro 1-1/+1
2022-07-10chore(api-ref-docs): change doc to documentationGravatar Hyro 1-1/+1
2022-07-10chore(bug-report): add label bug, need reproGravatar Hyro 1-0/+1