mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 18:17:23 +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
001f36eb66
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
Add a link
Reference in a new issue