summaryrefslogtreecommitdiff
path: root/test/built-ins/String/prototype/search/S15.5.4.12_A1_T11.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/String/prototype/search/S15.5.4.12_A1_T11.js')
-rw-r--r--test/built-ins/String/prototype/search/S15.5.4.12_A1_T11.js22
1 files changed, 13 insertions, 9 deletions
diff --git a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T11.js b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T11.js
index 8367e9ae3..dec9e127e 100644
--- a/test/built-ins/String/prototype/search/S15.5.4.12_A1_T11.js
+++ b/test/built-ins/String/prototype/search/S15.5.4.12_A1_T11.js
@@ -9,18 +9,22 @@ description: >
toString function, that throw exception
---*/
-var __obj = {toString:function(){throw "intostr";}}
+var __obj = {
+ toString: function() {
+ throw "intostr";
+ }
+}
var __str = "ABB\u0041BABAB";
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
- try {
- var x = __str.search(__obj);
- $ERROR('#1: var x = __str.search(__obj) lead to throwing exception');
- } catch (e) {
- if (e!=="intostr") {
- $ERROR('#1.1: Exception === "intostr". Actual: '+e);
- }
- }
+try {
+ var x = __str.search(__obj);
+ $ERROR('#1: var x = __str.search(__obj) lead to throwing exception');
+} catch (e) {
+ if (e !== "intostr") {
+ $ERROR('#1.1: Exception === "intostr". Actual: ' + e);
+ }
+}
//
//////////////////////////////////////////////////////////////////////////////