Skip to content

Commit 47c0131

Browse files
Ms2gerptomato
authored andcommitted
Clarify descriptions in returns-false-when-symbol-value-not-present.js
1 parent 5405ebf commit 47c0131

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

test/built-ins/WeakMap/prototype/has/returns-false-when-symbol-key-not-present.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ var foo = Symbol('a description');
1414
var bar = Symbol('a description');
1515
var map = new WeakMap();
1616

17-
assert.sameValue(map.has(foo), false, 'Map is initially empty of regular symbol');
18-
assert.sameValue(map.has(Symbol.hasInstance), false, 'Map is initially empty of well-known symbol');
17+
assert.sameValue(map.has(foo), false, 'WeakMap is initially empty of regular symbol');
18+
assert.sameValue(map.has(Symbol.hasInstance), false, 'WeakMap is initially empty of well-known symbol');
1919

2020
map.set(foo, 1);
2121
assert.sameValue(map.has(bar), false, "Symbols with the same description don't alias each other");
2222

2323
map.delete(foo);
24-
assert.sameValue(map.has(foo), false, 'Map is empty again of regular symbol after deleting');
24+
assert.sameValue(map.has(foo), false, 'WeakMap is empty again of regular symbol after deleting');
2525

2626
map.set(Symbol.hasInstance, 2);
2727
map.delete(Symbol.hasInstance);
28-
assert.sameValue(map.has(Symbol.hasInstance), false, 'Map is empty again of well-known symbol after deleting');
28+
assert.sameValue(map.has(Symbol.hasInstance), false, 'WeakMap is empty again of well-known symbol after deleting');

test/built-ins/WeakSet/prototype/has/returns-false-when-symbol-value-not-present.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ var foo = Symbol('a description');
1414
var bar = Symbol('a description');
1515
var s = new WeakSet();
1616

17-
assert.sameValue(s.has(foo), false, 'Set is initially empty of regular symbol');
18-
assert.sameValue(s.has(Symbol.hasInstance), false, 'Set is initially empty of well-known symbol');
17+
assert.sameValue(s.has(foo), false, 'WeakSet is initially empty of regular symbol');
18+
assert.sameValue(s.has(Symbol.hasInstance), false, 'WeakSet is initially empty of well-known symbol');
1919

2020
s.add(foo);
2121
assert.sameValue(s.has(bar), false, 'Symbols with the same description are not aliased to each other');
2222

2323
s.delete(foo);
24-
assert.sameValue(s.has(foo), false, 'Set is again empty of regular symbol after deleting');
24+
assert.sameValue(s.has(foo), false, 'WeakSet is again empty of regular symbol after deleting');
2525
s.delete(Symbol.hasInstance);
26-
assert.sameValue(s.has(Symbol.hasInstance), false, 'Set is again empty of well-known symbol after deleting');
26+
assert.sameValue(s.has(Symbol.hasInstance), false, 'WeakSet is again empty of well-known symbol after deleting');

0 commit comments

Comments
 (0)