mirror of
https://github.com/denoland/deno.git
synced 2024-12-15 11:58:42 -05:00
62e952559f
This makes the permission system more versatile.
15 lines
280 B
TypeScript
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);
|
|
}
|