summaryrefslogtreecommitdiff
path: root/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T9.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T9.js')
-rw-r--r--test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T9.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T9.js b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T9.js
index ff3b8527c..0eec7b4ce 100644
--- a/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T9.js
+++ b/test/built-ins/String/prototype/lastIndexOf/S15.5.4.8_A1_T9.js
@@ -10,15 +10,15 @@ description: >
---*/
var __obj = {
- valueOf:function(){},
- toString:void 0
+ valueOf: function() {},
+ toString: void 0
};
//////////////////////////////////////////////////////////////////////////////
//CHECK#1
//since ToString(undefined) evaluates to "undefined" indexOf(undefined) evaluates to indexOf("undefined")
-if (new String(__obj).lastIndexOf(function(){}()) !== 0) {
- $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).lastIndexOf(function(){}()) === 0. Actual: '+new String(__obj).lastIndexOf(function(){}()) );
+if (new String(__obj).lastIndexOf(function() {}()) !== 0) {
+ $ERROR('#1: __obj = {valueOf:function(){}, toString:void 0}; new String(__obj).lastIndexOf(function(){}()) === 0. Actual: ' + new String(__obj).lastIndexOf(function() {}()));
}
//
//////////////////////////////////////////////////////////////////////////////