Skip to content

--max-executable-size not recognized after upgrade 7.10.0 => 8.0.0 #13341

Closed
@abenhamdine

Description

@abenhamdine
  • Version:8.0.0
  • Platform:Windows 10 64bits
  • Subsystem: child process

The following code doesn't crash with node 7.10.0 but crashes with node 8.0.0 :

            const env = _.cloneDeep(process.env);

            const options = {
                execArgv: process.execArgv.concat(['--expose-gc', '--max-executable-size=384', '--max-old-space-size=512', '--max-semi-space-size=2']),
                env: env
            };

            const cp = child_process.fork(myPathProcess, [someArg1, someArg2], options);

The error :

C:\Program Files\nodejs\node.exe: bad option: --max-executable-size=384

DEBUG 19:38:55 : Calculation.onChildExit() : child process 7016 exited with code 9

I've suspected #12348 but failed to see how it can be related.

Have the V8 options changed ? I didn't find anything in the changelog about this.
Or is --max-executable-size the correct syntax ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliIssues and PRs related to the Node.js command line interface.v8 engineIssues and PRs related to the V8 dependency.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions