]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/symbol-and-string-constructor.js
4a88e863ab5113f39ac263e969365fb3e907d480
[apple/javascriptcore.git] / tests / stress / symbol-and-string-constructor.js
1 function performString(value) {
2 return String(value);
3 }
4 noInline(performString);
5
6 for (var i = 0; i < 10000; ++i) {
7 var result = performString(Symbol.iterator);
8 if (result !== 'Symbol(Symbol.iterator)')
9 throw new Error('bad value: ' + result);
10 }