Skip to content

Conversation

awestlake87
Copy link

Currently quickjs-rs is not able to handle async functions that return undefined. Functions like async () => { } or async () => undefined will throw the following error:

failures:

---- tests::test_async_fn_returning_undefined stdout ----
thread 'tests::test_async_fn_returning_undefined' panicked at 'called `Result::unwrap()` on an `Err` value: Internal("Property '__promiseValue' not found")', src/tests.rs:629:43
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

This PR allows __promiseValue to be undefined when __promiseResult === true

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 this pull request may close these issues.

1 participant