marbemac / electron-worker-crash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Electron Web Worker Crash Example

Bare minimal example that shows how running web worker with nodeIntegrationInWorker set to true results in electron crashing on worker termination.

All it does is create/terminate an empty worker on an interval.

Run

To run the example with nodeIntegrationInWorker set to false, and NOT crash:

npm install
npm start

To run the example with nodeIntegrationInWorker set to true, and crash:

npm install
npm start.crash

The crash usually occurs in the first 5 seconds.

About


Languages

Language:JavaScript 85.0%Language:HTML 8.2%Language:CSS 6.8%