Index: test/mjsunit/harmony/harmony-string-pad-start.js |
diff --git a/test/mjsunit/harmony/harmony-string-pad-start.js b/test/mjsunit/harmony/harmony-string-pad-start.js |
index 2b2d004251a13a82fbd9a382177f8bf65ed20f4f..33bf8f3c9d5c11a7139c7012a3e69113cb370eed 100644 |
--- a/test/mjsunit/harmony/harmony-string-pad-start.js |
+++ b/test/mjsunit/harmony/harmony-string-pad-start.js |
@@ -67,8 +67,19 @@ |
(function TestFillerToString() { |
assertEquals(" .", ".".padStart(10)); |
assertEquals(" .", ".".padStart(10, undefined)); |
- assertEquals(" .", ".".padStart(10, { toString() { return ""; } })); |
assertEquals("nullnulln.", ".".padStart(10, null)); |
+ assertEquals("XXXXXXXXX.", ".".padStart(10, { toString() { return "X"; } })); |
+ assertEquals( |
+ "111111111.", |
+ ".".padStart(10, { toString: undefined, valueOf() { return 1; } })); |
+})(); |
+ |
+ |
+(function TestFillerEmptyString() { |
+ assertEquals(".", ".".padStart(10, "")); |
+ assertEquals(".", ".".padStart(10, { toString() { return ""; } })); |
+ assertEquals( |
+ ".", ".".padStart(10, { toString: undefined, valueOf() { return ""; } })); |
})(); |