| Index: test/webkit/fast/js/toString-exception.js
|
| diff --git a/test/webkit/instanceof-operator.js b/test/webkit/fast/js/toString-exception.js
|
| similarity index 81%
|
| copy from test/webkit/instanceof-operator.js
|
| copy to test/webkit/fast/js/toString-exception.js
|
| index 1230181584337c86a13846618b2cefe510239e59..2a8b50c0fdd080deeb9a8115a04b9d3680bea08b 100644
|
| --- a/test/webkit/instanceof-operator.js
|
| +++ b/test/webkit/fast/js/toString-exception.js
|
| @@ -22,12 +22,22 @@
|
| // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| description(
|
| -"instanceof test"
|
| +'This test checks for regression against <a href="https://bugs.webkit.org/show_bug.cgi?id=7343">7343: REGRESSION: fast/js/toString-overrides.html fails when run multiple times</a>.'
|
| );
|
|
|
| -getterCalled = false;
|
| +var a = [{ toString : 0 }];
|
| +
|
| try {
|
| - ({} instanceof { get prototype(){ getterCalled = true; } });
|
| + a.toString();
|
| } catch (e) {
|
| }
|
| -shouldBeFalse("getterCalled");
|
| +
|
| +var caught = false;
|
| +
|
| +try {
|
| + a.toString();
|
| +} catch (e) {
|
| +caught = true;
|
| +}
|
| +
|
| +shouldBeTrue("caught");
|
|
|