electron/spec/fixtures/crash-cases/webcontentsview-create-leak.../index.js

8 lines
170 B
JavaScript

const { WebContentsView, app } = require('electron');
app.whenReady().then(function () {
// eslint-disable-next-line no-new
new WebContentsView();
app.quit();
});