| Index: test/mjsunit/harmony/collections.js
|
| diff --git a/test/mjsunit/harmony/collections.js b/test/mjsunit/harmony/collections.js
|
| index 95504bc76ce9dfc94a4e434a029d63150bf69a4a..f3db7ea2b70a9670fa7e63082b2022bbd57f2576 100644
|
| --- a/test/mjsunit/harmony/collections.js
|
| +++ b/test/mjsunit/harmony/collections.js
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2011 the V8 project authors. All rights reserved.
|
| +// Copyright 2012 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -119,12 +119,12 @@ TestMapBehavior2(new Map);
|
| // Test expected querying behavior of Maps and WeakMaps
|
| function TestQuery(m) {
|
| var key = new Object;
|
| - TestMapping(m, key, 'to-be-present');
|
| - assertTrue(m.has(key));
|
| - assertFalse(m.has(new Object));
|
| - TestMapping(m, key, undefined);
|
| - assertFalse(m.has(key));
|
| - assertFalse(m.has(new Object));
|
| + var values = [ 'x', 0, +Infinity, -Infinity, true, false, null, undefined ];
|
| + for (var i = 0; i < values.length; i++) {
|
| + TestMapping(m, key, values[i]);
|
| + assertTrue(m.has(key));
|
| + assertFalse(m.has(new Object));
|
| + }
|
| }
|
| TestQuery(new Map);
|
| TestQuery(new WeakMap);
|
|
|