mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
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:
Notes:
github-actions[bot]
2025-04-11 18:38:18 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/7539d808cdf Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4326
@@ -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() {{
|
||||
{}
|
||||
|
||||
Reference in New Issue
Block a user