ladybird/Tests/LibWeb/Text/input/HTML/shadow-realm-async-evaluate.html
2025-03-20 11:50:49 +01:00

14 lines
367 B
HTML

<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {
const realm = new ShadowRealm()
const aSync = realm.evaluate(`async () => 1 + 1`);
try {
aSync();
println('Fail! No exception thrown');
} catch (e) {
println(`PASS: Exception thrown '${e}'`);
}
})
</script>