diff options
Diffstat (limited to 'third_party/webkit/PerformanceTests/six-speed/tests/classes.es5')
-rw-r--r-- | third_party/webkit/PerformanceTests/six-speed/tests/classes.es5 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/third_party/webkit/PerformanceTests/six-speed/tests/classes.es5 b/third_party/webkit/PerformanceTests/six-speed/tests/classes.es5 new file mode 100644 index 0000000000..ae5c7c11fb --- /dev/null +++ b/third_party/webkit/PerformanceTests/six-speed/tests/classes.es5 @@ -0,0 +1,11 @@ +function C() { + this.foo = 'bar'; +} +C.prototype.bar = function() { +}; + +assertEqual(new C().foo, 'bar'); + +test(function() { + return new C(); +}); |