]> git.saurik.com Git - apple/javascriptcore.git/blame - tests/stress/symbol-and-string-constructor.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / symbol-and-string-constructor.js
CommitLineData
ed1e77d3
A
1function performString(value) {
2 return String(value);
3}
4noInline(performString);
5
6for (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}