electron/spec/fixtures/crash-cases/webcontents-create-leak-exit/index.js
Milan Burda ea848bc1c5
test: use webContents.create() in type-safe way (#37281)
test: use (webContents as typeof ElectronInternal.WebContents).create()

Co-authored-by: Milan Burda <miburda@microsoft.com>
2023-02-16 15:41:41 +01:00

6 lines
128 B
JavaScript

const { app, webContents } = require('electron');
app.whenReady().then(function () {
webContents.create();
app.quit();
});