@@ -2,7 +2,7 @@
|
2 | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | 3 | // found in the LICENSE file. |
4 | 4 | // |
5 | | -// Flags: --harmony-class-fields |
| 5 | +// Flags: --harmony-symbol-as-weakmap-key |
6 | 6 | |
7 | 7 | let {session, contextGroup, Protocol} = InspectorTest.start("Check internal properties reported in object preview."); |
8 | 8 | |
@@ -45,6 +45,15 @@ InspectorTest.runTestSuite([
|
45 | 45 | .then(next); |
46 | 46 | }, |
47 | 47 | |
| 48 | +function symbolsAsKeysInEntries(next) |
| 49 | +{ |
| 50 | +checkExpression("new Map([[Symbol('key1'), 1]])") |
| 51 | +.then(() => checkExpression("new Set([Symbol('key2')])")) |
| 52 | +.then(() => checkExpression("new WeakMap([[Symbol('key3'), 2]])")) |
| 53 | +.then(() => checkExpression("new WeakSet([Symbol('key4')])")) |
| 54 | +.then(next); |
| 55 | +}, |
| 56 | + |
48 | 57 | function iteratorObject(next) |
49 | 58 | { |
50 | 59 | checkExpression("(new Map([[1,2]])).entries()") |
|