2025-03-18 15:28:35 -03:00
|
|
|
<!DOCTYPE html>
|
2024-10-26 06:07:09 -03:00
|
|
|
<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>
|