electron/spec-main/fixtures/crash-cases/fs-promises-renderer-crash/index.html
Robo b2c5623a13
fix: crash when destroying node env with pending promises (#33280)
* fix: crash when destroying node env with pending promises

* chore: add spec
2022-03-16 18:54:45 +01:00

17 lines
288 B
HTML

<html>
<body>
<script>
const fs = require('fs');
const { ipcRenderer } = require('electron');
async function readFile(path) {
await fs.promises.readFile(path);
}
ipcRenderer.on('reload', (_, path) => {
readFile(path);
window.location.reload();
});
</script>
</body>
</html>