Azure functions Azure节点函数中没有Spread运算符

Azure functions Azure节点函数中没有Spread运算符,azure-functions,Azure Functions,我正在Node中编写我的第一个Azure函数。这是我本地机器上的VS代码。我需要一些为Chrome扩展编写的js代码,但它没有编译。例如,这个扩展操作符 if (otherProps) this.props[indx] = { ...this.props[indx], ...otherProps }; 生成以下错误: ...this.props[indx], ^^^ SyntaxError: Unexpected token ... at createScript (vm.js

我正在Node中编写我的第一个Azure函数。这是我本地机器上的VS代码。我需要一些为Chrome扩展编写的js代码,但它没有编译。例如,这个扩展操作符

if (otherProps) this.props[indx] = {
    ...this.props[indx],
    ...otherProps
};
生成以下错误:

...this.props[indx], ^^^ SyntaxError: Unexpected token ... at createScript (vm.js:56:10) at Object.runInThisContext (vm.js:97:10)
node.green显示了节点8.6的完全兼容性,Azure v1是8.11,所以我认为不是这样


我错过了一些简单的东西吗?需要注意的是,我尝试要求的大多数节点包都会出现各种各样的错误。Spread operators、replace、nodeType全部失败。

Azure v1目标节点v6,v2目标8和10,Spread operator在v6中不可用。

如何安装库?你们能检查一下这个我正在使用npm安装,但我应该提到这是一个本地VS代码版本,问题已经修改为包括这个。