blob: 36b69d9d764c046d54245410cd96ca6cdfabd1e5 [file] [log] [blame]
description(
'This test checks for regression against <a href="https://bugs.webkit.org/show_bug.cgi?id=7343">7343: REGRESSION: js/toString-overrides.html fails when run multiple times</a>.'
);
var a = [{ toString : 0 }];
try {
a.toString();
} catch (e) {
}
var caught = false;
try {
a.toString();
} catch (e) {
caught = true;
}
shouldBeTrue("caught");