| Index: test/mjsunit/harmony/collections.js
|
| diff --git a/test/mjsunit/harmony/collections.js b/test/mjsunit/harmony/collections.js
|
| index 3e87e6b533bdea945ea775e1c625ce8ec912d185..174d3d1dc7ca772c86e388e8de68f786b9022e08 100644
|
| --- a/test/mjsunit/harmony/collections.js
|
| +++ b/test/mjsunit/harmony/collections.js
|
| @@ -207,10 +207,10 @@ TestArbitrary(new WeakMap);
|
|
|
|
|
| // Test direct constructor call
|
| -assertTrue(Set() instanceof Set);
|
| -assertTrue(Map() instanceof Map);
|
| -assertTrue(WeakMap() instanceof WeakMap);
|
| -assertTrue(WeakSet() instanceof WeakSet);
|
| +assertThrows(function() { Set(); }, TypeError);
|
| +assertThrows(function() { Map(); }, TypeError);
|
| +assertThrows(function() { WeakMap(); }, TypeError);
|
| +assertThrows(function() { WeakSet(); }, TypeError);
|
|
|
|
|
| // Test whether NaN values as keys are treated correctly.
|
| @@ -308,7 +308,6 @@ TestPrototype(WeakSet);
|
| function TestConstructor(C) {
|
| assertFalse(C === Object.prototype.constructor);
|
| assertSame(C, C.prototype.constructor);
|
| - assertSame(C, C().__proto__.constructor);
|
| assertSame(C, (new C).__proto__.constructor);
|
| }
|
| TestConstructor(Set);
|
|
|