mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-10 02:51:55 +00:00
14 lines
367 B
HTML
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>
|