"Fossies" - the Fresh Open Source Software Archive

Member "deno-1.34.2/cli/tests/testdata/run/016_double_await.ts" (9 Jun 2023, 290 Bytes) of package /linux/www/deno-1.34.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) TypeScript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 // This is to test if Deno would die at 2nd await
    2 // See https://github.com/denoland/deno/issues/919
    3 (async () => {
    4   const currDirInfo = await Deno.stat(".");
    5   const parentDirInfo = await Deno.stat("..");
    6   console.log(currDirInfo.isDirectory);
    7   console.log(parentDirInfo.isFile);
    8 })();