Fix evaluation order with object spread (#11412)

* Fix object spread runtime semantics

* limit this deoptimization

* optimize empty objects

* declare variables
This commit is contained in:
Zen
2020-04-24 05:59:35 +08:00
committed by GitHub
parent 5f299bab18
commit af669297ef
12 changed files with 144 additions and 1 deletions

View File

@@ -1,3 +1,10 @@
var a;
var b;
var c;
var d;
var x;
var y;
({ x, ...y, a, ...b, c });
({ ...Object.prototype });