aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Fugate <dfugate@microsoft.com>2012-01-13 15:15:29 -0800
committerDavid Fugate <dfugate@microsoft.com>2012-01-13 15:15:29 -0800
commit42737015f407957c91be265459d5e04c4bdb7111 (patch)
tree4d5f22727286be8e2527ddae1c3cad0853542f0f /test
parent9dbc4e9821480c61c9e8e3d957673fc515afe0f7 (diff)
https://bugs.ecmascript.org/show_bug.cgi?id=75
Diffstat (limited to 'test')
-rw-r--r--test/suite/ch15/15.4/15.4.4/15.4.4.5/S15.4.4.5_A3.1_T2.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/suite/ch15/15.4/15.4.4/15.4.4.5/S15.4.4.5_A3.1_T2.js b/test/suite/ch15/15.4/15.4.4/15.4.4.5/S15.4.4.5_A3.1_T2.js
index a49a7814a..a425c5c5e 100644
--- a/test/suite/ch15/15.4/15.4.4/15.4.4.5/S15.4.4.5_A3.1_T2.js
+++ b/test/suite/ch15/15.4/15.4.4/15.4.4.5/S15.4.4.5_A3.1_T2.js
@@ -78,3 +78,14 @@ catch (e) {
}
}
+//CHECK#9
+try {
+ var object = {toString: function() {throw "error"}};
+ [].join(object);
+ $ERROR('#9.1: var object = {toString: function() {throw "error"}}; [].join(object) throw "error". Actual: ' + ([].join(object)));
+}
+catch (e) {
+ if (e !== "error") {
+ $ERROR('#9.2: var object = {toString: function() {throw "error"}}; [].join(object) throw "error". Actual: ' + (e));
+ }
+} \ No newline at end of file