Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / regress / script-tests / string-sub.js
blobba7b247611118c6e01fe86d8af34e21b05323fe6
1 function foo(a, b) {
2 return a - b;
5 var result = 0;
6 for (var i = 0; i < 1000000; ++i)
7 result += foo("42", i);
9 if (result != -499957500000)
10 throw "Bad result: " + result;