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

7 lines
158 B
JavaScript

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