summaryrefslogtreecommitdiff
path: root/test/suite/ch15/15.12/15.12.3/15.12.3-11-26.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/ch15/15.12/15.12.3/15.12.3-11-26.js')
-rw-r--r--test/suite/ch15/15.12/15.12.3/15.12.3-11-26.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/suite/ch15/15.12/15.12.3/15.12.3-11-26.js b/test/suite/ch15/15.12/15.12.3/15.12.3-11-26.js
index 8581058c8..36c5c306b 100644
--- a/test/suite/ch15/15.12/15.12.3/15.12.3-11-26.js
+++ b/test/suite/ch15/15.12/15.12.3/15.12.3-11-26.js
@@ -16,6 +16,6 @@ function testcase() {
arrObj[2] = "c";
var jsonText = JSON.stringify(arrObj, undefined, "").toString();
- return jsonText.substr(jsonText.length - 1, 1) === "]";
+ return jsonText.charAt(jsonText.length - 1) === "]";
}
runTestCase(testcase);