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