diff options
Diffstat (limited to 'third_party/webkit/PerformanceTests/six-speed/tests/arrow-args.es5')
-rw-r--r-- | third_party/webkit/PerformanceTests/six-speed/tests/arrow-args.es5 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/third_party/webkit/PerformanceTests/six-speed/tests/arrow-args.es5 b/third_party/webkit/PerformanceTests/six-speed/tests/arrow-args.es5 new file mode 100644 index 0000000000..252c02a7c8 --- /dev/null +++ b/third_party/webkit/PerformanceTests/six-speed/tests/arrow-args.es5 @@ -0,0 +1,16 @@ +var obj = { + value: 42, + fn: function() { + var args = arguments; + return function() { + return args[0]; + }; + } +}; + +var fn = obj.fn(1); +assertEqual(fn(), 1); + +test(function() { + fn(); +}); |