electron/spec/fixtures/crash-cases/node-options-parsing/options.js
Robo 307d4f94c7
fix: oob string read when parsing node_options (#46210)
* fix: oob string read when parsing node_options

* chore: re-enable test

* fix: missing linux server env for tests
2025-03-25 19:33:10 +09:00

8 lines
240 B
JavaScript

const path = require('node:path');
if (process.env.NODE_OPTIONS &&
process.env.NODE_OPTIONS.trim() === `--allow-addons --require ${path.join(__dirname, 'preload.js')} --allow-addons`) {
process.exit(0);
} else {
process.exit(1);
}