electron/spec/fixtures/esm/top-level-await.mjs

8 lines
195 B
JavaScript

import * as electron from 'electron';
// Cheeky delay
await new Promise((resolve) => setTimeout(resolve, 500));
console.log('Top level await, ready:', electron.app.isReady());
process.exit(0);