Index: test/mjsunit/harmony/collections.js |
diff --git a/test/mjsunit/harmony/collections.js b/test/mjsunit/harmony/collections.js |
index 002adaaed7c1a3e2951c201651014b6aa1531608..7bf7bf70639aaee83230ed9beefbcc15ad310eb5 100644 |
--- a/test/mjsunit/harmony/collections.js |
+++ b/test/mjsunit/harmony/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: --harmony-collections --harmony-weak-collections |
+// Flags: --harmony-collections |
// Flags: --expose-gc --allow-natives-syntax |
@@ -290,19 +290,20 @@ assertEquals("WeakSet", WeakSet.name); |
// Test prototype property of Set, Map, WeakMap and WeakSet. |
-function TestPrototype(C) { |
+// TODO(2793): Should all be non-writable, and the extra flag removed. |
+function TestPrototype(C, writable) { |
assertTrue(C.prototype instanceof Object); |
assertEquals({ |
value: {}, |
- writable: true, // TODO(2793): This should be non-writable. |
+ writable: writable, |
enumerable: false, |
configurable: false |
}, Object.getOwnPropertyDescriptor(C, "prototype")); |
} |
-TestPrototype(Set); |
-TestPrototype(Map); |
-TestPrototype(WeakMap); |
-TestPrototype(WeakSet); |
+TestPrototype(Set, true); |
+TestPrototype(Map, true); |
+TestPrototype(WeakMap, false); |
+TestPrototype(WeakSet, false); |
// Test constructor property of the Set, Map, WeakMap and WeakSet prototype. |