Zen af669297ef
Fix evaluation order with object spread (#11412)
* Fix object spread runtime semantics

* limit this deoptimization

* optimize empty objects

* declare variables
2020-04-23 17:59:35 -04:00

17 lines
212 B
JavaScript

var a;
var b;
var c;
var d;
var x;
var y;
({ x, ...y, a, ...b, c });
({ ...Object.prototype });
({ ...{ foo: 'bar' } });
({ ...{ foo: 'bar' }, ...{ bar: 'baz' } });
({ ...{ get foo () { return 'foo' } } });