mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01: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
|
|
@ -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…
Reference in New Issue
Block a user