summaryrefslogtreecommitdiffstats
path: root/third_party/webkit/PerformanceTests/six-speed/tests/object-literal-ext.es5
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/webkit/PerformanceTests/six-speed/tests/object-literal-ext.es5')
-rw-r--r--third_party/webkit/PerformanceTests/six-speed/tests/object-literal-ext.es515
1 files changed, 15 insertions, 0 deletions
diff --git a/third_party/webkit/PerformanceTests/six-speed/tests/object-literal-ext.es5 b/third_party/webkit/PerformanceTests/six-speed/tests/object-literal-ext.es5
new file mode 100644
index 0000000000..5ea31687db
--- /dev/null
+++ b/third_party/webkit/PerformanceTests/six-speed/tests/object-literal-ext.es5
@@ -0,0 +1,15 @@
+function fn() {
+ var name = 'foo';
+ var ret = {
+ 'bizz buzz': function() {
+ return 1;
+ },
+ name: name
+ };
+ ret[name] = 'bar';
+ ret[name + 'foo'] = 'foo';
+ return ret;
+}
+
+assertEqual(fn().foofoo, 'foo');
+test(fn);