summaryrefslogtreecommitdiffstats
path: root/third_party/webkit/PerformanceTests/six-speed/tests/spread-literal.es6
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/webkit/PerformanceTests/six-speed/tests/spread-literal.es6')
-rw-r--r--third_party/webkit/PerformanceTests/six-speed/tests/spread-literal.es65
1 files changed, 5 insertions, 0 deletions
diff --git a/third_party/webkit/PerformanceTests/six-speed/tests/spread-literal.es6 b/third_party/webkit/PerformanceTests/six-speed/tests/spread-literal.es6
new file mode 100644
index 0000000000..b180fb5587
--- /dev/null
+++ b/third_party/webkit/PerformanceTests/six-speed/tests/spread-literal.es6
@@ -0,0 +1,5 @@
+function fn() {
+ return [1, ... [1, 2, 3]];
+}
+assertEqual(fn()[3], 3);
+test(fn);