LibWeb/WebDriver: Add a FIXME about allowing await in script bodies

There will soon only be a couple of remaining script execution WPT
promise.py failures. This comment is to explain why.
This commit is contained in:
Timothy Flynn 2025-04-11 12:57:49 -04:00 committed by Tim Flynn
parent eb0a51faf0
commit 7539d808cd
Notes: github-actions[bot] 2025-04-11 18:38:18 +00:00

View file

@ -34,6 +34,8 @@ static JS::ThrowCompletionOr<JS::Value> execute_a_function_body(HTML::BrowsingCo
auto& realm = environment_settings.realm();
auto& global_scope = realm.global_environment();
// FIXME: This does not handle scripts which contain `await` statements. It is not as as simple as declaring this
// function async, unfortunately. See: https://github.com/w3c/webdriver/issues/1436
auto source_text = ByteString::formatted(
R"~~~(function() {{
{}