Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

civet.dev/playground - Displaying console output from async functions #938

Closed
tlgreg opened this issue Feb 3, 2024 · 0 comments · Fixed by #941
Closed

civet.dev/playground - Displaying console output from async functions #938

tlgreg opened this issue Feb 3, 2024 · 0 comments · Fixed by #941
Assignees

Comments

@tlgreg
Copy link

tlgreg commented Feb 3, 2024

On the playground looks like some console.log calls inside async functions are lost. This doesn't seem to affect immediately resolved promises.

Example Civet 0.6.66:

dog := 'https://dog.ceo/api/breeds/image/random'

main()

function main
  await show_foo()
  await fetch_dog();

function fetch_dog
  fetch dog |> await |> .json() |> await |> console.log;

async function show_foo
  console.log 'foo';

playground

Output is just: foo
Expected:

foo
{ ...responseJSON }
@edemaine edemaine self-assigned this Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants