mirror of
https://github.com/denoland/deno.git
synced 2025-09-23 10:52:33 +00:00
10 lines
281 B
TypeScript
10 lines
281 B
TypeScript
const tids = Array.from(
|
|
Deno.readDirSync("/proc/self/task"),
|
|
({ name }) => Number(name),
|
|
);
|
|
const names = tids.map((tid) =>
|
|
Deno.readTextFileSync(`/proc/self/task/${tid}/status`).match(
|
|
/Name:\t(.*)/,
|
|
)![1]
|
|
);
|
|
console.log(names.some((name) => name.startsWith("V8")));
|