On 05/08/2019 23:49, Alexander Rodin wrote:
It would be nice to have spread syntax for object literals [1] in QuickJS:
let obj = {a: 3, b: 4};
let objClone = { ...obj };
It is in the standard since ECMAScript 2018 [2].
References:
[1]
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax
[2] http://www.ecma-international.org/ecma-262/9.0/#sec-object-initializer
<http://www.ecma-international.org/ecma-262/10.0/#sec-object-initializer>
Thanks,
Alexander