Index: test/mjsunit/harmony/collections.js |
diff --git a/test/mjsunit/harmony/collections.js b/test/mjsunit/harmony/collections.js |
index b33d08063d711491c1177600df5ac4f691c33ba5..804a320f3647161ab24bd5bce18872ec23737ad1 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. |