mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 11:36:10 +00: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:
parent
eb0a51faf0
commit
7539d808cd
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
1 changed files with 2 additions and 0 deletions
|
@ -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() {{
|
||||
{}
|
||||
|
|
Loading…
Add table
Reference in a new issue