
Previously, calling fetch with a signal object provided by `AbortSignal.timeout()` would cause a crash when the signal timed out. We now push a `TemporaryExecutionContext` to the stack when we invoke the signal's abort steps, as an execution context is required when calling native functions.
12 lines
293 B
HTML
12 lines
293 B
HTML
<!DOCTYPE html>
|
|
<script src="include.js"></script>
|
|
<script>
|
|
asyncTest(async done => {
|
|
try {
|
|
await fetch("about:srcdoc", { signal: AbortSignal.timeout(0) });
|
|
} finally {
|
|
println("PASS (didn't crash)");
|
|
done();
|
|
}
|
|
});
|
|
</script>
|