[Webkit-unassigned] [Bug 145820] [JSC] tagged-templates.js test fails occasionally
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jun 9 15:54:53 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=145820
--- Comment #1 from Yusuke Suzuki <utatane.tea at gmail.com> ---
Reproduced by the following test.
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + JSON.stringify(actual));
}
function raw(siteObject) {
var result = '';
for (var i = 0; i < siteObject.raw.length; ++i) {
result += siteObject.raw[i];
if ((i + 1) < arguments.length) {
result += arguments[i + 1];
}
}
return result;
}
function Counter() {
var count = 0;
return {
toString() {
return count++;
}
};
}
for (var i = 0; i < 10000; ++i) {
print(i);
var c = Counter();
shouldBe(raw`Hello ${c} World ${c}`, `Hello 0 World 1`);
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150609/2380878c/attachment.html>
More information about the webkit-unassigned
mailing list