Files
scriptc/tests/corpus/4030-runtime-object-truthiness.ts
Chris Tate 3f66c8e20b Make LLVM the sole production backend
- Remove C emission, debugging options, and automatic backend fallback.
- Complete LLVM lowering and native bootstrap coverage across supported targets.
- Link executables and libraries with precompiled C runtime packs, including iOS and Android.
2026-09-29 20:54:09 -05:00

11 lines
382 B
TypeScript

import { createServer, Server } from "node:net";
function serverPresent(server: Server | null): boolean {
return !!server;
}
const server = createServer(() => {});
console.log("streams", !!process.stdin, !!process.stdout, !!process.stderr);
console.log("input", process.stdin ? "present" : "absent");
console.log("server", serverPresent(server), serverPresent(null), !!server);