1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-15 11:58:42 -05:00
denoland-deno/tests/specs/run/ld_preload/set_with_allow_env.ts
David Sherret 62e952559f
refactor(permissions): split up Descriptor into Allow, Deny, and Query (#25508)
This makes the permission system more versatile.
2024-09-16 21:39:37 +01:00

15 lines
280 B
TypeScript

Deno.env.set("LD_PRELOAD", "./libpreload.so");
try {
new Deno.Command("curl").spawn();
} catch (err) {
console.log(err);
}
Deno.env.set("DYLD_FALLBACK_LIBRARY_PATH", "./libpreload.so");
try {
Deno.run({ cmd: ["curl"] }).spawnSync();
} catch (err) {
console.log(err);
}