1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-23 15:16:54 -05:00
denoland-deno/cli/tests/044_bad_resource.ts
Bartek Iwańczuk 4a8d25646a
BREAKING CHANGE: remove Deno.OpenMode (#4884)
This commit removes Deno.OpenMode along with overloaded variants
of Deno.open() and Deno.openSync() that used OpenMode.
2020-04-25 00:45:55 +02:00

7 lines
163 B
TypeScript

async function main(): Promise<void> {
const file = await Deno.open("044_bad_resource.ts", { read: true });
file.close();
await file.seek(10, 0);
}
main();