#include "root.h" #include "helpers.h" #include "BunClientData.h" JSC::JSValue createSystemError(JSC::JSGlobalObject* global, ASCIILiteral message, ASCIILiteral syscall, int err) { auto* instance = JSC::createError(global, String(message)); auto& vm = global->vm(); auto& builtinNames = WebCore::builtinNames(vm); instance->putDirect(vm, builtinNames.syscallPublicName(), jsString(vm, String(syscall)), 0); instance->putDirect(vm, builtinNames.errnoPublicName(), JSC::jsNumber(err), 0); instance->putDirect(vm, vm.propertyNames->name, jsString(vm, String("SystemError"_s)), JSC::PropertyAttribute::DontEnum | 0); return instance; } JSC::JSValue createSystemError(JSC::JSGlobalObject* global, ASCIILiteral syscall, int err) { auto* instance = JSC::createError(global, makeString(String(syscall), "() failed"_s)); auto& vm = global->vm(); auto& builtinNames = WebCore::builtinNames(vm); instance->putDirect(vm, builtinNames.syscallPublicName(), jsString(vm, String(syscall)), 0); instance->putDirect(vm, builtinNames.errnoPublicName(), JSC::jsNumber(err), 0); instance->putDirect(vm, vm.propertyNames->name, jsString(vm, String("SystemError"_s)), JSC::PropertyAttribute::DontEnum | 0); return instance; }>ciro/fetch-fix-with-lock Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/docs/templates.md (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2023-04-28Improve test runner markdownGravatar Ashcon Partovi 2-67/+107
2023-04-28[resolver] Propagate module type from package.json `"exports"` when possibleGravatar Jarred Sumner 2-5/+33
2023-04-28Fix crash with invalid input in fetch()Gravatar Jarred Sumner 1-2/+14
2023-04-28Improves Body.Value life cycle and Signal life cycle on server.zig (#2752)Gravatar Ciro Spaciari 12-227/+331
2023-04-28Use global allocator tsconfig.jsonGravatar Jarred Sumner 1-3/+6
2023-04-28Use setup-bun insteadGravatar Ashcon Partovi 1-12/+15
2023-04-28Fix path of bun in workflow, try 3Gravatar Ashcon Partovi 1-1/+1
2023-04-28Fix path of bun in workflow, try 2Gravatar Ashcon Partovi 1-2/+1
2023-04-28Fix path of bun in workflowGravatar Ashcon Partovi 1-1/+2
2023-04-28Use GITHUB_PATH instead of cpGravatar Ashcon Partovi 1-1/+1
2023-04-28Maybe fix test runner on macOSGravatar Ashcon Partovi 1-2/+2
2023-04-28Improve test workflowGravatar Ashcon Partovi 3-39/+56
2023-04-28Fix typo in runnerGravatar Ashcon Partovi 1-1/+1
2023-04-28Use bun x instead of bunxGravatar Ashcon Partovi 1-1/+1
2023-04-28Fix manual test workflowGravatar Ashcon Partovi 1-2/+1
2023-04-28Use Node.js APIs for test runnerGravatar Ashcon Partovi 3-17/+28
2023-04-28New test runner with better Github integrationGravatar Ashcon Partovi 2-20/+634
2023-04-28Bundler docs updates + support for `naming` string (#2767)Gravatar Colin McDonnell 5-252/+394
2023-04-27address unicode issue (#2763)Gravatar Jarred Sumner 3-19/+17
2023-04-27:nail_care:Gravatar Jarred Sumner 2-15/+4
2023-04-27fix: make node:crypto Hash.copy work correctly (#2761)Gravatar Silver 12-8941/+7815
2023-04-27Add TODO noteGravatar Jarred Sumner 1-0/+2
2023-04-27Fix mimalloc-debugGravatar Jarred Sumner 1-3/+3
2023-04-27Remove extra word in docs/index.md (#2758)Gravatar B. Burt 1-1/+1
2023-04-27Implement `outdir` in `Bun.build`Gravatar Jarred Sumner 8-26/+362
2023-04-27Don't preallocate unless its profitableGravatar Jarred Sumner 5-40/+45