Chrome中的展开运算符上出现意外令牌?

bir*_*d03 1 javascript

我使用以下代码在Chrome开发工具中测试了一些内容:

const one = {a: "a", b: "b"};
const two = { ...one, c: "c" };
VM417:1 Uncaught SyntaxError: Unexpected token ...
Run Code Online (Sandbox Code Playgroud)

为什么我在扩展运算符上出现此错误?

Dav*_*yon 5

您正在尝试对象休息/传播,这还没有完全进入ES6规范.因此,不支持传播到对象中,只扩散到数组中.

对象休息/传播目前是第3阶段提案.