| Index: test/mjsunit/es6/collections.js
|
| diff --git a/test/mjsunit/es6/collections.js b/test/mjsunit/es6/collections.js
|
| index 94b2aea12b49ef598bd5dbc1d10a79068fab5dcc..60ce46b2e569e8a206a0923b0d46fe778570d9c4 100644
|
| --- a/test/mjsunit/es6/collections.js
|
| +++ b/test/mjsunit/es6/collections.js
|
| @@ -25,7 +25,7 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -// Flags: --expose-gc --allow-natives-syntax
|
| +// Flags: --expose-gc --allow-natives-syntax --harmony-tostring
|
|
|
|
|
| function assertSize(expected, collection) {
|
| @@ -300,7 +300,7 @@ assertEquals("WeakSet", WeakSet.name);
|
| function TestPrototype(C) {
|
| assertTrue(C.prototype instanceof Object);
|
| assertEquals({
|
| - value: {},
|
| + value: C.prototype,
|
| writable: false,
|
| enumerable: false,
|
| configurable: false
|
| @@ -1423,3 +1423,12 @@ function TestMapConstructorIterableValue(ctor) {
|
| }
|
| TestMapConstructorIterableValue(Map);
|
| TestMapConstructorIterableValue(WeakMap);
|
| +
|
| +function TestCollectionToString(C) {
|
| + assertEquals("[object " + C.name + "]",
|
| + Object.prototype.toString.call(new C()));
|
| +}
|
| +TestCollectionToString(Map);
|
| +TestCollectionToString(Set);
|
| +TestCollectionToString(WeakMap);
|
| +TestCollectionToString(WeakSet);
|
|
|