args参数中的--harmony标志似乎不起作用

Rhe*_*inz 5 node.js visual-studio-code

args参数中节点的--harmony标志似乎不起作用.我不能使用胖数组函数.这里的一部分lounch.json

"configurations": [
    {
        // Name of configuration; appears in the launch configuration drop down menu.
        "name": "Launch app.js",
        // Type of configuration. Possible values: "node", "mono".
        "type": "node",
        // Workspace relative or absolute path to the program.
        "program": "./app.js",
        // Automatically stop program after launch.
        "stopOnEntry": true,
        // Command line arguments passed to the program.
        "args": ["--harmony"],
        // Workspace relative or absolute path to the working directory of the program being debugged. Default is the current workspace.
        "cwd": ".",
        // Workspace relative or absolute path to the runtime executable to be used. Default is the runtime executable on the PATH.
        "runtimeExecutable": null,
        // Environment variables passed to the program.
        "env": { }
    }, 
    {
        "name": "Attach",
        "type": "node",
        // TCP/IP address. Default is "localhost".
        "address": "localhost",
        // Port to attach to.
        "port": 5858
    }
]
Run Code Online (Sandbox Code Playgroud)

有没有办法自己解决问题?

Sim*_*mon 5

"args"参数不适用于节点进程,而是适用于应用程序的参数.我自己也很困惑,文档应该让这个更清楚.

有关解决方法,请参阅此问题:如何使用vscode中的自定义参数启动nodejs