src/sql/postgres.zig (17 lines): - line 1466: std.debug.panic("TODO: not implemented {s}", .{bun.meta.typeBaseName(@typeName(Type))}); - line 1631: // TODO: .int2_array, .float8_array, - line 1707: else => @compileError("TODO: not implemented"), - line 1717: else => @compileError("TODO: not implemented"), - line 1727: else => @compileError("TODO: not implemented"), - line 2090: // TODO: error handling - line 2110: // TODO: error handling - line 2758: // TODO: I don't think this is failable. - line 3111: // TODO: - line 3400: // TODO: .int2_array, .float8_array - line 3448: // TODO: - line 3927: debug("TODO auth: {s}", .{@tagName(std.meta.activeTag(auth))}); - line 3994: debug("TODO PortalSuspended", .{}); - line 4003: debug("TODO CopyInResponse", .{}); - line 4020: debug("TODO CopyOutResponse", .{}); - line 4023: debug("TODO CopyDone", .{}); - line 4026: debug("TODO CopyBothResponse", .{}); src/bun.js/webcore/blob.zig (16 lines): - line 269: // TODO: make this async + lazy - line 850: // TODO: make this async - line 851: // TODO: mkdirp() - line 1002: // TODO only reset last_modified on success pathes instead of - line 1143: // TODO: implement a writeev() fast path - line 1365: // TODO: on windows this is always synchronous - line 2525: // TODO: optimize this - line 2853: // TODO: this should use non-blocking I/O. - line 2864: // TODO: this should use non-blocking I/O. - line 2897: // TODO: this should use non-blocking I/O. - line 2944: // TODO: this should use non-blocking I/O. - line 3165: @compileError("TODO: implement copyfile"); - line 3764: // TODO: Move this to a separate `File` object or BunFile - line 3820: // TODO: Move this to a separate `File` object or BunFile - line 4170: // TODO: fix this - line 4203: // TODO: remove this field, make it a boolean. src/bun.js/api/server.zig (14 lines): - line 145: // TODO: should we get the mime type off of the Blob.Store if it exists? - line 230: globalThis.throwTODO("TODO: support Bun.file(path) in static routes"); - line 446: idleTimeout: u8 = 10, //TODO: should we match websocket default idleTimeout of 120? - line 447: // TODO: use webkit URL parser instead of bun's - line 1941: // TODO: support builtin compression - line 2070: // TODO: has_marked_complete is doing something? - line 2348: // TODO: should we cork? - line 2582: // TODO we should not need this int cast; improve the return type of `@min` - line 3001: // TODO: should this timeout? - line 4076: // TODO: check if is someone calling onStartBuffering other than onStartBufferingCallback - line 6090: // TODO: should we cork? - line 6225: // TODO: set Host header - line 6226: // TODO: set User-Agent header - line 6227: // TODO: unify with fetch() implementation. src/bun.zig (14 lines): - line 246: // TODO: remove this constCast by making the input mutable - line 256: // TODO: remove this constCast by adding uv_buf_t_const - line 582: @panic("TODO on Windows"); - line 1401: @panic("TODO unsupported platform for getFdPathW"); - line 1550: // TODO: Rename to SourceMap as this is a struct. - line 2048: FDImpl => fd, // TODO: remove the toFD call from these places and make this a @compileError - line 2054: // TODO: remove u32 - line 2059: // TODO: remove intCast. we should not be casting u32 -> i32 - line 2062: FileDescriptor => fd, // TODO: remove the toFD call from these places and make this a @compileError - line 2219: // TODO: anything else? - line 2695: // TODO: report this bug - line 2807: // TODO stat the file and return an error if it's not a directory - line 3274: // TODO open zig issue to make 'std.fs.selfExePath' return [:0]u8 directly - line 3510: // TODO: this is wrong! src/bun.js/bindings/BunProcess.cpp (13 lines): - line 1539: // TODO: - line 1570: // TODO: use HOSTNAME_MAX - line 1644: // TODO: allow errors as an argument - line 1683: // TODO: - line 1691: // TODO: - line 1699: // TODO: - line 1711: // TODO: - line 1719: // TODO: - line 1727: // TODO: - line 1760: // TODO: node:vm - line 1768: // TODO: - line 2539: // TODO: add a binding for heap.sizeAfterLastCollection() - line 2546: // TODO: add a binding for m_arrayBuffers, registerWrapper() in TypedArrayController doesn't work src/js_ast.zig (13 lines): - line 265: // TODO: remove this optional and make Ref a function getter - line 660: // TODO: investigate counting number of < 0 and > 0 and pre-allocating - line 1248: // TODO: MustStartWithCapitalLetterForJSX - line 1872: // TODO: - line 2806: /// TODO: - line 5025: // TODO: evaluate whether or not it is safe to do this mutation since it's modifying in-place. - line 5595: // TODO: experiment with allowing some e_binary, e_unary, e_if as movable - line 6734: // TODO: assert mimalloc-owned memory - line 7248: // TODO: SIMD - line 8040: // TODO: optimize this - line 8202: @panic("TODO: support template literals in macros"); - line 8236: // TODO: can change back to `return CallData.callWrapper(.{` - line 8322: // TODO: remove this, add an onModuleDirective() callback to the parser src/patch.zig (12 lines): - line 11: // TODO: calculate this for different systems - line 163: // TODO: this additional allocation is probably not necessary in all cases and should be avoided or use stack buffer - line 188: // TODO: should we compute the hash of the original file and check it against the on in the patch? - line 227: /// TODO: this is a very naive and slow implementation which works by creating a list of lines - line 292: // TODO: i hate this - line 310: // TODO: check if the lines match in the original file? - line 322: // TODO: check if the lines match in the original file? - line 559: // TODO: the parser can be refactored to remove this as it is a hacky workaround, like detecting while parsing if legacy diffs are used - line 792: // TODO: store line somewhere - line 856: // TODO: store line - line 985: // TODO: store line - line 1031: // TODO: the regex uses \w which is [a-zA-Z0-9_] src/js/node/child_process.ts (12 lines): - line 58: // TODO: - line 65: // TODO: Look at Pipe to see if we can support passing Node Pipe objects to stdio param - line 67: // TODO: Add these params after support added in Bun.spawn - line 72: // TODO: Add support for ipc option, verify only one IPC channel in array - line 296: // code: code < 0 ? getSystemErrorName(code) : code, // TODO: Add getSystemErrorName - line 571: // TODO: Need to expose extra pipes from Bun.spawnSync to child_process - line 954: // TODO: Windows env support here... - line 1383: overlapped: "pipe", // TODO: this may need to work differently for Windows - line 1401: throw new Error(`TODO: stream.Readable stdio @ ${index}`); - line 1405: throw new Error(`TODO: stream.Writable stdio @ ${index}`); - line 1463: // TODO: Stream -- use this stream - line 1497: // TODO: Support wrapped types here src/string_immutable.zig (11 lines): - line 50: // TODO: remove this - line 77: // TODO: remove this - line 380: // // TODO: Use __builtin_clz??? - line 1232: // TODO: this needs to re-encode, for now we just remove the BOM - line 1263: // TODO: this needs to re-encode, for now we just remove the BOM - line 3366: // TODO: is it safe to just make this u32 or u21? - line 4611: // TODO: experiment with simd to see if it's faster - line 4616: // TODO: experiment with simd to see if it's faster - line 5240: // TODO: see convertUTF8toUTF16InBuffer - line 5260: // .surrogate => @panic("TODO: handle surrogate in convertUTF8toUTF16"), - line 5261: // else => @panic("TODO: handle error in convertUTF16toUTF8InBuffer"), src/sys.zig (11 lines): - line 285: /// TODO: convert to function - line 434: return Error{ .errno = todo_errno, .syscall = .TODO }; - line 2222: // TODO: alpine linux may not have /proc/self - line 2468: @compileError("TODO: existsOSPath"); - line 2480: @compileError("TODO: existsOSPath"); - line 2621: @compileError("TODO: existsAtOSPath"); - line 2658: @compileError("TODO: isExecutablePath"); - line 2670: else => @compileError("TODO: isExecutableFilePath"), - line 2679: @compileError("TODO: isExecutablePath"); - line 2735: @panic("TODO: Implement `pipe()` for Windows"); - line 3157: // TODO: probably return the error? we have a lot of code paths which do not so we are keeping for now src/napi/napi.zig (11 lines): - line 639: // TODO: bind JSC::ownKeys - line 718: // TODO: does this throw object_expected in node? - line 799: // TODO: this is likely incorrect - line 946: // TODO: handle detached - line 1087: // TODO: lossless - line 1097: // TODO: lossless - line 1318: // TODO: is invalid_arg what to return here? - line 1451: // TODO: generate comptime version of this instead of runtime checking - line 1757: // TODO: - line 1762: // TODO: - line 1777: // TODO: write a script to generate this struct. ideally it wouldn't even need to be committed to source. src/shell/shell.zig (11 lines): - line 80: const str = std.fmt.allocPrint(bun.default_allocator, "bun: TODO: {s}\n", .{this.invalid_arguments.val}) catch bun.outOfMemory(); - line 125: bun.Output.prettyErrorln("error: Failed due to error: TODO: {s}", .{todo}); - line 171: // TODO: windows - line 363: /// TODO: Extra indirection for essentially a boolean feels bad for performance - line 621: /// TODO: If we know cond/then/elif/else is just a single command we don't need to store the stmt - line 968: // FIXME error location - line 1530: // TODO check for multiple redirects and error - line 1659: // TODO in this case we know it can't possibly be the beginning of a brace expansion so maybe its faster to just change it to text here - line 2856: // TODO Arbitrary file descriptor redirect - line 2955: // FIXME support redirection to any arbitrary fd - line 3591: // TODO actually i think that this can also use the simd stuff src/js_printer.zig (10 lines): - line 556: // TODO: remove this - line 1942: _ = leading_interior_comments; // TODO: - line 2618: // TODO: - line 2638: // TODO: - line 3154: // TODO: addSourceMappingForName - line 3158: // TODO: addSourceMappingForName - line 3171: // // TODO: addSourceMappingForName - line 3726: // TODO: is needing to check item.flags.contains(.was_shorthand) a bug? - line 5390: // TODO: extract printString - line 5398: // TODO: rewrite this to handle src/install/lockfile.zig (10 lines): - line 657: // TODO: warning about peer dependency version mismatch - line 842: /// TODO make this faster by caching the workspace package ids - line 1235: // TODO remove the need for manager when migrating from package-lock.json - line 4373: // TODO: when does this get deallocated? - line 4838: // TODO: what if we could comptime call the syntax highlighter - line 4850: // TODO: what if we could comptime call the syntax highlighter - line 4873: // TODO: what if we could comptime call the syntax highlighter - line 5272: // TODO: when we bump the lockfile version, we should reorder this to: - line 5276: // TODO: remove origin. it doesnt do anything and can be inferred from the resolution - line 5914: // TODO: investigate if we still need this now that we have `padding_checker.zig` src/bun.js/node/node_fs.zig (10 lines): - line 57: // TODO: - line 492: // TODO: error strings on node_fs will die - line 1260: // TODO: to improve performance for all of these - line 2978: // TODO: make this faster by passing argument count at comptime - line 4446: // TODO: do we need to fchown? - line 4858: // TODO: verify this works correctly with unicode codepoints - line 4877: // TODO: remove and make it always a comptime argument - line 6324: // TODO: switch to an implementation which does not use any "unreachable" - line 6454: // TODO: investigate if simd can be easily used here - line 6878: // TODO: do we need to fchown? src/bun.js/bindings/ZigGlobalObject.cpp (10 lines): - line 257: // TODO: thread_local for workers - line 374: // FIXME: why can size == 6 and capacity == 0? - line 696: // TODO: @paperdave: remove this wrapper and make the WTF::Function from JavaScriptCore expeect OrdinalNumber instead of unsigned. - line 967: // TODO: workers - line 1065: // FIXME: is there a better way to do this? this event handler should always be tied to the global object - line 1082: // FIXME: is there a better way to do this? this event handler should always be tied to the global object - line 2516: // TODO: is it safe to use CallSite structure from a different JSGlobalObject? This case would happen within a node:vm - line 2848: // TODO: windows - line 3443: // TODO: most/all of these private properties can be made as static globals. - line 3504: // TODO: this should be usable on the lookup table. it crashed las time i tried it src/bun.js/webcore/streams.zig (9 lines): - line 715: // TODO: use an explicit JSC.Strong here. - line 2032: // TODO: make this JSGlobalObject local - line 2165: // TODO: should we break it in smaller chunks? - line 2344: // TODO: attempt to write both in a corked buffer? - line 3071: // TODO: these fields are duplicated on writer() - line 3130: // TODO: on windows done means ended (no pending data on the buffer) on unix we can still have pending data on the buffer - line 3236: // TODO: this should be concurrent. - line 3289: @compileError("TODO: implement for this platform"); - line 4957: @panic("TODO on Windows"); packages/bun-polyfills/src/modules/jsc.ts (9 lines): - line 16: // TODO: Investigate ways of making these the actual JSC serialization format (probably Bun WASM) - line 17: // TODO: whilst this works for common use-cases like Node <-> Node it still does not make it - line 18: // TODO: possible for Node <-> Bun transfers of this kind of data, which might be interesting to have. - line 41: // TODO: Like with jsc.serialize/deserialize, these may be possible with Bun WASM. - line 72: objectCount: 1, // TODO: how to get this in node? - line 74: globalObjectCount: 2, // TODO: this one is probably fine hardcoded but is there a way to get this in node? - line 75: protectedGlobalObjectCount: 1, // TODO: ^ - line 76: objectTypeCounts: {}, //! can't really throw an error here, so just return an empty object (TODO: how to get this in node?) - line 77: protectedObjectTypeCounts: {} //! can't really throw an error here, so just return an empty object (TODO: how to get this in node?) src/bun.js/javascript.zig (9 lines): - line 703: /// TODO: rename this to ScriptExecutionContext - line 966: // TODO: do we need to %-encode the path? - line 978: // TODO: do we need to %-encode the path? - line 1146: // TODO maybe we want a separate code path for uncaught exceptions - line 2176: // TODO: We only want to retry on not found only when the directories we searched for were cached. - line 2488: // TODO: - line 3446: // TODO: preserve the divot position and possibly use stringWidth() to figure out where to put the divot - line 3699: // TODO: cleanup and refactor to use printStackTrace() - line 4356: // TODO: evaluate if this has any measurable performance impact. src/http.zig (9 lines): - line 51: //TODO: this needs to be freed when Worker Threads are implemented - line 148: // TODO we should not need this int cast; improve the return type of `@min` - line 1172: @compileError("TODO:"); - line 1695: // TODO: reduce the size of this struct - line 1930: // TODO: reduce the size of this struct - line 1983: // TODO keepalive for unix sockets - line 2388: //TODO: need to understand how is possible to reuse Proxy with TSL, so disable keepalive if url is HTTPS - line 2488: // TODO: this condition seems wrong: if we started with a non-default value, we might - line 2696: // TODO: should this check be before decrementing the redirect count? src/js/node/http.ts (9 lines): - line 40: // TODO: make this more robust. - line 81: // TODO: add primordial for URL - line 346: // TODO: remove the arguments - line 562: // TODO: our net.Server and http.Server use different Bun APIs and our IPC doesnt support sending and receiving handles yet. use reusePort instead for now. - line 834: type === "request" // TODO: Add logic for checking for body on response - line 842: // TODO: streaming - line 1387: // TODO: - line 1771: // TODO: Validators - line 1784: // TODO: Validators src/bun.js/ConsoleObject.zig (9 lines): - line 1097: // TODO: we print InternalFunction as Object because we have a lot of - line 1388: // TODO: this is not perfectly emulating parseFloat, - line 1418: // TODO: Node.js applies the following extra formatter options. - line 1433: // TODO: Implement %c - line 1738: // TODO: make this one pass? - line 2029: // TODO: in the future, should this throw when in Bun.inspect? - line 2124: // TODO: DerivedArray does not get passed along in JSType, and it's not clear why. - line 3142: // TODO: if (options.showProxy), print like `Proxy { target: ..., handlers: ... }` - line 3373: // TODO: this does an extra JSONStringify and we don't need it to! src/bun.js/api/bun/subprocess.zig (8 lines): - line 442: .array_buffer, .blob => Output.panic("TODO: implement ArrayBuffer & Blob support in Stdio readable", .{}), - line 443: .capture => Output.panic("TODO: implement capture support in Stdio readable", .{}), - line 459: .array_buffer, .blob => Output.panic("TODO: implement ArrayBuffer & Blob support in Stdio readable", .{}), - line 460: .capture => Output.panic("TODO: implement capture support in Stdio readable", .{}), - line 461: .dup2 => Output.panic("TODO: implement dup2 support in Stdio readable", .{}), - line 779: array.push(global, .null); // TODO: align this with options - line 780: array.push(global, .null); // TODO: align this with options - line 1287: .dup2 => @panic("TODO dup2 stdio"), src/bun.js/api/bun/h2_frame_parser.zig (8 lines): - line 181: // TODO: we dont support this setting yet see https://nodejs.org/api/http2.html#settings-object - line 939: // TODO: check for well-known headers and use pre-allocated static strings (see lshpack.c) - line 944: // TODO: check for well-known headers and use pre-allocated static strings (see lshpack.c) - line 1567: // TODO: make this real? - line 1761: // TODO: sumDependencyWeight - line 1990: // TODO: support CONTINUE for more headers if headers are too big - line 2112: // TODO: check padding strategy here - line 2154: // TODO: PADDING_STRATEGY_MAX AND PADDING_STRATEGY_ALIGNED src/cli/pack_command.zig (7 lines): - line 170: // // TODO: --filter - line 326: // TODO: should this be case insensitive on all platforms? - line 971: // TODO: should this be case insensitive on all platforms? - line 1366: // TODO: experiment with `archive.writeOpenMemory()` - line 1756: // TODO: make semver parsing more strict. `^`, `~` are not valid - line 1771: // TODO: this might be too strict - line 1974: // TODO: copy this function src/bun.js/bindings/KeyObject.cpp (7 lines): - line 115: // TODO: @cirospaciari - is this supposed to be unused? - line 2190: // TODO: CHECK THIS WHEN X488 AND ED448 ARE ADDED - line 2560: // TODO: include what error was thrown in the message - line 2643: // TODO: @cirospaciari is saltLength supposed to be used here? - line 2647: // TODO: include what error was thrown in the message - line 2791: // TODO: Look into DSA and DH - line 2806: // TODO: CHECK THIS WHEN X488 AND ED448 ARE ADDED src/bun.js/bindings/NodeVM.cpp (7 lines): - line 83: // TODO: cachedData - line 84: // TODO: importModuleDynamically - line 186: return throwVMError(globalObject, scope, "TODO: Script.createCachedData"_s); - line 358: // TODO: options - line 377: // TODO: options - line 399: // TODO: options - line 422: // FIXME: doesn't seem to work? Just returns undefined src/glob.zig (7 lines): - line 218: // TODO this might not be quite right, we're comparing pointers, not the underlying directory - line 293: // TODO do we want to propagate ENOTDIR through the 'Maybe' to match the SyscallAccessor? - line 310: // TODO is this a noop? - line 614: // TODO Optimization: On posix systems filepaths are already null byte terminated so we can skip this if thats the case - line 793: // TODO this function calls `matchPatternImpl(pattern, - line 1701: // TODO: Support other escaping glob syntax - line 2171: /// TODO: this doesn't play nicely with Windows directory separator and src/options.zig (7 lines): - line 52: // TODO: switch to getFdPath()-based implementation - line 124: // TODO: fix this stupid copy - line 132: // // TODO: fix this stupid copy - line 649: // TODO: CSS - line 2064: @panic("TODO windows"); - line 2511: // TODO: do we need a separate list for data-only extensions? - line 2653: // TODO: throw error src/bun.js/api/bun/socket.zig (7 lines): - line 552: this.handlers = handlers; // TODO: this is a memory leak - line 892: // TODO: fix this leak. - line 1159: // TODO: switch to something that uses `visitAggregate` and have the - line 2153: this.handlers.* = handlers; // TODO: this is a memory leak - line 2456: // TODO: investigate better option or compatible way to get the key - line 2794: // TODO: we need to support the non abbreviated version of this - line 3345: // TODO: do better type checking src/resolver/resolver.zig (7 lines): - line 733: // TODO: make this only parse package.json once - line 984: // TODO: This is skipped for now because it is impossible to set a - line 1070: // TODO: check if webpack also does this parent lookup - line 2166: // TODO: handle this error better - line 2352: bun.unreachablePanic("TODO: implement enqueueDependencyToResolve for non-root packages", .{}); - line 2543: // TODO: - line 3651: // TODO: check this works right. Not sure this will really work. src/bun.js/bindings/CallSitePrototype.cpp (6 lines): - line 100: // TODO: doesn't recognize thisValue as global object - line 107: // TODO: doesn't get class name - line 152: // TODO: - line 208: // TODO: - line 216: // TODO: - line 224: // TODO: src/bun.js/bindings/webcrypto/CryptoKeyOKPOpenSSL.cpp (6 lines): - line 77: // FIXME: We should use the underlying crypto library to import PKCS8 OKP keys. - line 85: // FIXME: Check length is 5 + 1 + 1 + 1 + keyByteSize. - line 91: // FIXME: Check length is 5. - line 97: // FIXME: spec says this is 1 3 101 11X but WPT tests expect 6 3 43 101 11X. - line 119: // FIXME: Check length is keyByteSize + 1. - line 196: // FIXME: We should use the underlying crypto library to import PKCS8 OKP keys. src/bun.js/bindings/napi.cpp (6 lines): - line 92: // TODO: handle symbol collision - line 102: // TODO: handle invalid identifiers - line 2022: // TODO: filter - line 2555: // TODO: make this per addon instead of globally shared for ALL addons - line 2644: // TODO: verify sign bit is consistent - line 2649: // TODO: add fast path that uses memcpy here instead of setDigit src/bundler.zig (6 lines): - line 164: // TODO: validate this better - line 262: // TODO: validate this better - line 1015: Output.panic("TODO: dataurl, base64", .{}); // TODO - line 1105: // // TODO: - line 1489: // TODO: use lazy export AST - line 1624: // TODO: use lazy export AST src/shell/subproc.zig (6 lines): - line 50: /// TODO Set this to interpreter - line 172: // TODO: uncoment this when is ready, commented because was not compiling - line 937: // TODO: handle error - line 1004: // TODO: We should probably throw error here? - line 1160: // TODO: are these flags correct - line 1185: Output.panic("TODO: implement error handling in Bun Shell PipeReader.onReadChunk\n{}", .{e}); src/js/node/fs.promises.ts (6 lines): - line 111: // TODO: implement this in native code using a Dir Iterator 💀 - line 281: throw new Error("BUN TODO FileHandle.getAsyncId"); - line 401: throw new Error("BUN TODO FileHandle.readLines"); - line 548: throw new Error("BUN TODO FileHandle.kTransfer"); - line 552: throw new Error("BUN TODO FileHandle.kTransferList"); - line 556: throw new Error("BUN TODO FileHandle.kDeserialize"); src/bun.js/bindings/webcore/WebSocket.cpp (6 lines): - line 333: // FIXME: Convert this to check the isolated world's Content Security Policy once webkit.org/b/104520 is solved. - line 337: // // FIXME: Should this be throwing an exception? - line 341: // FIXME: There is a disagreement about restriction of subprotocols between WebSocket API and hybi-10 protocol - line 373: // // FIXME: make the mixed content check equivalent to the non-document mixed content check currently in WorkerThreadableWebSocketChannel::Bridge::connect() - line 1063: // // FIXME: We just received the data from NetworkProcess, and are sending it back. This is inefficient. - line 1141: // TODO: Blob is not supported currently. src/bun.js/bindings/sqlite/JSSQLStatement.cpp (6 lines): - line 1139: // TODO: log a warning here that we can't load extensions - line 1143: // TODO: log a warning here that defensive mode is not enabled - line 1248: // TODO: can we disable loading extensions after this? - line 1620: // TODO: log a warning here that extensions are unsupported. - line 1625: // TODO: log a warning here that defensive mode is unsupported. - line 1796: // TODO: use LazyClassStructure? src/js/node/worker_threads.ts (6 lines): - line 106: // TODO: parent port emulation is not complete - line 264: // TODO: - line 269: // TODO: - line 274: // TODO: - line 332: // TODO: is this right? - line 337: // TODO: is this right? src/js/node/fs.ts (5 lines): - line 81: // TODO: Next.js/watchpack causes this to emits weird EACCES errors on - line 587: // TODO: make symbols a separate export somewhere - line 616: // TODO: move this entire thing into native code. - line 1186: // TODO: what is this for? - line 1307: // TODO: Replace this when something like lseek is available src/bun.js/bindings/bindings.zig (5 lines): - line 1649: // TODO: remove this hardcoding - line 1665: // TODO: remove this hardcoding - line 5320: else => @compileError("TODO:" ++ @typeName(T)), - line 5536: // TODO: this shouldn't be reachable. - line 5543: // TODO: add this assertion. currently, there is a mistake in src/bun.js/bindings/webcore/JSDOMConvertUnion.h (5 lines): - line 192: // (FIXME: Add support for object and step 4.2) - line 214: // FIXME: Add support for steps 5 & 6. - line 263: // (FIXME: Add support for object and step 9.2) - line 286: // FIXME: Add support for step 10. - line 335: // (FIXME: Add support for callback interface type and step 12.5) src/bun.js/node/node.classes.ts (5 lines): - line 97: // TODO: generate-classes needs to handle Object.create properly when - line 239: // TODO: generate-classes needs to handle Object.create properly when - line 394: // TODO: generate-classes needs to handle Object.create properly when - line 464: // TODO: - line 539: // TODO: src/bun.js/event_loop.zig (5 lines): - line 1557: // TODO: make this more efficient! - line 1635: // TODO maybe this should be AcquireRelease - line 1641: // TODO maybe this should be AcquireRelease - line 1704: @panic("FIXME TODO"); - line 2112: unreachable; // TODO: src/bun.js/node/types.zig (5 lines): - line 92: @panic("TODO called!"); - line 94: @panic(comptime "TODO: Maybe(" ++ typeBaseNameT(ReturnType) ++ ")"); - line 911: // TODO: should this be an EINVAL? - line 926: // TODO: should this be an EINVAL? - line 1600: // TODO: BigIntStats includes a `_checkModeProperty` but I dont think anyone actually uses it. src/js_lexer.zig (5 lines): - line 1615: // TODO: this seems to work, but we shouldn't enable this until after improving test coverage - line 2019: // TODO: implement NO_SIDE_EFFECTS - line 2106: // TODO: implement this - line 2262: // TODO: use wtf-8 encoding. - line 3224: // TODO: implement this to actually work right src/bun.js/api/bun/process.zig (4 lines): - line 1348: // TODO: investigate if this should be adjusted on Linux. - line 1365: // TODO: investigate if this should be adjusted on Linux. - line 1397: .dup2 => @panic("TODO dup2 extra fd"), - line 1640: .dup2 => @panic("TODO dup2 extra fd"), src/bun.js/bindings/webcore/JSDOMConvertSequences.h (4 lines): - line 83: // FIXME: This is only implemented for the IDLFloatingPointTypes and IDLLong. To add - line 148: // FIXME: Is the right exception to throw? - line 181: // FIXME: Is the right exception to throw? - line 207: // FIXME: Is the right exception to throw? src/resolver/resolve_path.zig (4 lines): - line 171: // TODO: is it faster to determine longest_common_separator in the while loop - line 601: // TODO: handle input "//abc//def" should be picked up as a unc path - line 612: // TODO: handle input "//abc//def" should be picked up as a unc path - line 1823: // TODO: unc path src/bun.js/bindings/JSEnvironmentVariableMap.cpp (4 lines): - line 120: // TODO: this is an assertion failure - line 186: // TODO: only check "0". Node doesn't check both. But we already did. So we - line 197: // TODO: this is an assertion failure - line 251: // TODO: this is an assertion failure src/bun.js/api/js_brotli.zig (4 lines): - line 234: this.encoder.write_failure = JSC.DeferredError.from(.plainerror, .ERR_OPERATION_FAILED, "BrotliError", .{}); // TODO propogate better error - line 257: this.encoder.write_failure = JSC.DeferredError.from(.plainerror, .ERR_OPERATION_FAILED, "BrotliError", .{}); // TODO propogate better error - line 261: this.encoder.write_failure = JSC.DeferredError.from(.plainerror, .ERR_OPERATION_FAILED, "BrotliError", .{}); // TODO propogate better error - line 718: this.decoder.write_failure = JSC.DeferredError.from(.plainerror, .ERR_OPERATION_FAILED, "BrotliError", .{}); // TODO propogate better error src/bun.js/ipc.zig (4 lines): - line 257: // TODO: it would be cool to have a 'toUTF8Into' which can write directly into 'ipc_data.outgoing.list' - line 279: // TODO: it would be cool to have a 'toUTF8Into' which can write directly into 'ipc_data.outgoing.list' - line 359: // TODO: probably we should not direct access ipc_data.outgoing.list.items here - line 384: // TODO: probably we should not direct access ipc_data.outgoing.list.items here src/js/builtins/ReadableByteStreamInternals.ts (4 lines): - line 276: // FIXME: Determine what should be done here exactly (what is already existing in current - line 489: // FIXME: As indicated in comments of bug 172717, access to set is not safe. However, using prototype.$set.$call does - line 587: // FIXME: Getting BYTES_PER_ELEMENT like this is not safe (property is read-only - line 595: // FIXME: Getting constructor like this is not safe. A safe way of getting src/cli.zig (4 lines): - line 267: // TODO: update test completions - line 604: // TODO: prevent `node --port