Index: test/mjsunit/es6/object-tostring.js |
diff --git a/test/mjsunit/es6/object-tostring.js b/test/mjsunit/es6/object-tostring.js |
index 8999a180821cf554e66f4fda4d9e80b74b590775..064f2af675f55071da291a087167f625afaf1af5 100644 |
--- a/test/mjsunit/es6/object-tostring.js |
+++ b/test/mjsunit/es6/object-tostring.js |
@@ -2,7 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-// Flags: --harmony-tostring |
+// Flags: --harmony-tostring --allow-natives-syntax |
caitp (gmail)
2015/02/03 15:49:54
hmmm, I thought I was going to use this for %_Clas
|
var global = this; |
@@ -33,7 +33,7 @@ function testToStringTag(className) { |
// Using builtin toStringTags |
var obj = {}; |
obj[Symbol.toStringTag] = className; |
- assertEquals("[object ~" + className + "]", |
+ assertEquals("[object " + className + "]", |
Object.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 + "]", |
Object.prototype.toString.call(obj)); |
// Custom, non-builtin toStringTags |
@@ -99,14 +99,14 @@ function testToStringTag(className) { |
function testToStringTagNonString(value) { |
var obj = {}; |
obj[Symbol.toStringTag] = value; |
- assertEquals("[object ???]", Object.prototype.toString.call(obj)); |
+ assertEquals("[object Object]", Object.prototype.toString.call(obj)); |
// With getter |
obj = {}; |
Object.defineProperty(obj, Symbol.toStringTag, { |
get: function() { return value; } |
}); |
- assertEquals("[object ???]", Object.prototype.toString.call(obj)); |
+ assertEquals("[object Object]", Object.prototype.toString.call(obj)); |
} |
[ |
@@ -134,6 +134,6 @@ testObjectToStringPropertyDesc(); |
function testObjectToStringOwnNonStringValue() { |
var obj = Object.defineProperty({}, Symbol.toStringTag, { value: 1 }); |
- assertEquals("[object ???]", ({}).toString.call(obj)); |
+ assertEquals("[object Object]", ({}).toString.call(obj)); |
} |
testObjectToStringOwnNonStringValue(); |