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
ciro/fix-test-command
ciro/gc-tests
ciro/http2
ciro/proxy-connect-tests
ciro/queue-response-experiment
ciro/spawn-abort-signal-rebased
ciro/ws-fetch-proper-handshake
cli-flags
completions
create-constructors-when-needed
dap2
dap3
dave/assert-double-is-valid
dave/bundler-string-length
dave/es5-class-helper
dave/import.meta.resolve
dave/install-tag-without-dash
dave/lol
dave/nodemodule-preloadmodules
dave/postinstall
dave/postinstall_2
dave/remove-native-event
dave/zlib
debugger-dev
derrick/fix/bindings-mark-jscinitialize
derrick/fix/event-emitter-async-iter
derrick/fix/event-emitter-emit-throw-native
derrick/fix/http-lowercase-headers
derrick/fix/node-tests
derrick/test/add-ed25519-tests
detect-libc
doc/0.8
dylan/callback-fulfilled-after-rejection
dylan/change-pathname-assert
dylan/cli-fixes
dylan/encoding-fix
dylan/fix-bundling-lodash-es-is-buffer
dylan/fix-error-inlining
dylan/fix-module-field-in-exports
dylan/github-api-option
dylan/github-dependencies
dylan/import-file-path
dylan/non-enumerable-export-values
dylan/resolve-rope-in-string
dylan/set-exit-code
dylan/source-map-names-property
eventstream
feat/ecosystem
feat/npm
fix
fix-prepare-stack-trace
fix-websocket-upgrade
fs-watch-file
got
guides-3
improve-docker
insensitive-pkg-names
integration-tests
jarred/5859
jarred/actions
jarred/add-git
jarred/analytics
jarred/arenas
jarred/ast
jarred/ast-again
jarred/async_bio
jarred/bench
jarred/brotli
jarred/bump-uws
jarred/bundle-workspace-packages
jarred/bunfig
jarred/callable
jarred/canvas
jarred/ci-check
jarred/cjs2
jarred/cleanup-error
jarred/clipboard-objc
jarred/direct
jarred/dump
jarred/edgecase
jarred/esbuild-plugin-api
jarred/escapeHTML
jarred/esm-conditions
jarred/experiment-bsp
jarred/export-star-flat
jarred/exports-map
jarred/faster-error-capturestacktrace
jarred/faster-ordered-properties
jarred/fastmalloc
jarred/fetch-experiment
jarred/fetchheaders
jarred/fix-blob-slice-test
jarred/fix-bunbun-on-wsl
jarred/fix-crash
jarred/fix-http-compression
jarred/fix-issue-with-tsconfig-run
jarred/fix-proxy-regression
jarred/fixes-3129
jarred/gen
jarred/htmlrewriter
jarred/improve-testing
jarred/inquirer
jarred/isolation
jarred/jsc
jarred/land
jarred/landing
jarred/linux
jarred/live-bindings
jarred/make-strings-better
jarred/mdx-thrwawy
jarred/move
jarred/napi
jarred/new-bund
jarred/new-bund-ressurected-branch
jarred/new-http
jarred/no-more-npm
jarred/package-mapper
jarred/pg
jarred/port
jarred/possibly-2732
jarred/postgresql
jarred/precompile-linux-dependencies
jarred/prepare-for-libuv
jarred/profiled-call
jarred/read-tsconfig-jsx
jarred/redo-evaluation-order
jarred/redo-zigstring-for-utf16
jarred/relay
jarred/rename
jarred/repl
jarred/request-finalizer
jarred/rewrite-router
jarred/run
jarred/simdjson
jarred/simplify
jarred/some-fixes-for-eventsource
jarred/standalone-repro1
jarred/start
jarred/strong
jarred/subprocess
jarred/support-tee
jarred/tcc
jarred/throw-if
jarred/update-install-stuff
jarred/update-zig1
jarred/upgrade-zig-2
jarred/uws
jarred/webkit-upgrade-may-17
jarred/wip-more-reliable
jarred/workers
jarred/zlib
jarred/zls
lithdew/picohttp-mimalloc
main
move-templates
nestjs-guide
next-cleanup
origin/main
plugin/plugindata
plugin/resolvedir
postinstall_3
repl
request-body-stream
reserve-commands
revert-5167-dylan/decode-regex-if-needed
rfc/bun-bundler-api
rfc/bunfig-overhaul
save-in-update
sdl
test/action
types/mock
types/readable-stream-default
types/tty
u/vjpr/zig-0.10
xHyroM/types/expose-Bun-Env
Unnamed repository; edit this file 'description' to name the repository.
Age Commit message (Collapse ) Author Files Lines
Fixed the broken links to the Bun.serve benchmark sources.
* feat(core): implement web interaction APIs
* fix(core): adjust web prompt code and add types
This reverts commit 2659febd1b74e8215ff7dbfb2d1b19f4b4f8a71a.
* 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>
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)
Changed deocder to decoder
printed count to 512
* 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.
* Update repo URLs
* GitHub URL update
* Revert accidental URL changes