test262-automation 32a39daf43 [javascriptcore-test262-automation] Updated curation log with latest revision sha's from export and changed files.
sourceRevisionAtLastExport: 2b233fa3c0 targetRevisionAtLastExport: 8e3c6d0484
2018-12-15 19:17:28 +00:00

21 lines
372 B
JavaScript

function shouldBe(actual, expected)
{
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
noInline(shouldBe);
function test()
{
return Symbol();
}
noInline(test);
var set = new Set;
for (var i = 0; i < 1e4; ++i) {
var symbol = test();
set.add(symbol);
shouldBe(set.size, i + 1);
shouldBe(symbol.description, undefined);
}