| Index: test/mjsunit/es6/array-tostring.js
|
| diff --git a/test/mjsunit/es6/array-tostring.js b/test/mjsunit/es6/array-tostring.js
|
| index 625011f4387cc79b7ffd6df6eef8a44a3a269cd0..8a9198ca16353905704876c2ff1442ceb2b9dc22 100644
|
| --- a/test/mjsunit/es6/array-tostring.js
|
| +++ b/test/mjsunit/es6/array-tostring.js
|
| @@ -33,7 +33,7 @@ function testToStringTag(className) {
|
| // Using builtin toStringTags
|
| var obj = {};
|
| obj[Symbol.toStringTag] = className;
|
| - assertEquals("[object ~" + className + "]",
|
| + assertEquals("[object " + className + "]",
|
| Array.prototype.toString.call(obj));
|
|
|
| // Getter throws
|
| @@ -50,7 +50,7 @@ function testToStringTag(className) {
|
| Object.defineProperty(obj, Symbol.toStringTag, {
|
| get: function() { return className; }
|
| });
|
| - assertEquals("[object ~" + className + "]",
|
| + assertEquals("[object " + className + "]",
|
| Array.prototype.toString.call(obj));
|
|
|
| // Custom, non-builtin toStringTags
|
| @@ -100,14 +100,14 @@ function testToStringTag(className) {
|
| function testToStringTagNonString(value) {
|
| var obj = {};
|
| obj[Symbol.toStringTag] = value;
|
| - assertEquals("[object ???]", Array.prototype.toString.call(obj));
|
| + assertEquals("[object Object]", Array.prototype.toString.call(obj));
|
|
|
| // With getter
|
| obj = {};
|
| Object.defineProperty(obj, Symbol.toStringTag, {
|
| get: function() { return value; }
|
| });
|
| - assertEquals("[object ???]", Array.prototype.toString.call(obj));
|
| + assertEquals("[object Object]", Array.prototype.toString.call(obj));
|
| }
|
|
|
|
|
| @@ -138,7 +138,7 @@ testArrayToStringPropertyDesc();
|
|
|
| function testArrayToStringOwnNonStringValue() {
|
| var obj = Object.defineProperty({}, Symbol.toStringTag, { value: 1 });
|
| - assertEquals("[object ???]", ([]).toString.call(obj));
|
| + assertEquals("[object Object]", ([]).toString.call(obj));
|
| }
|
| testArrayToStringOwnNonStringValue();
|
|
|
|
|