Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(358)

Unified Diff: test/mjsunit/harmony/spread-array.js

Issue 1237003002: [es6] correct constant_elements backing-store when spread is used (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ast.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/spread-array.js
diff --git a/test/mjsunit/harmony/spread-array.js b/test/mjsunit/harmony/spread-array.js
index 18b72a28c5ab24301625f45c7b5af4979aff6bd6..6f116a592c48b1c0b27f91fe5388428cae66c9b9 100644
--- a/test/mjsunit/harmony/spread-array.js
+++ b/test/mjsunit/harmony/spread-array.js
@@ -11,6 +11,12 @@
assertArrayEquals(['a', 'b', 'c', 'd', 'e', 'f'],
['a', ...'bc', 'd', ...'ef'])
+ assertEquals([1, 2, 3], [1, 2, ...[3]]);
+ assertEquals([1, 2, , 3, 4, 5], [1, 2, ,...[3], 4, 5]);
+ assertEquals(['a', 'b', 'c'], ['a', 'b', ...['c']]);
+ assertEquals(['a', 'b', ,'c', 'd', 'e'], ['a', 'b', , ...['c'],'d', 'e']);
+ assertEquals([{a: true},{b: false},{c: true},{d: false}],
+ [{a: true},{b: false},...[{c: true}],{d: false}]);
})();
« no previous file with comments | « src/ast.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698