mirror of
https://github.com/tc39/test262.git
synced 2025-09-24 10:38:30 +02:00
Removed typeof from log message.
This commit is contained in:
parent
557b748bff
commit
daa4186be4
@ -22,7 +22,7 @@ var s = new WeakMap();
|
|||||||
for (let invalidKey of invalidKeys) {
|
for (let invalidKey of invalidKeys) {
|
||||||
assert.throws(TypeError, function () {
|
assert.throws(TypeError, function () {
|
||||||
s.getOrInsertComputed(invalidKey,
|
s.getOrInsertComputed(invalidKey,
|
||||||
() => log.push(`Unexpected evaluation of callback function, key: ${typeof invalidKey}`));
|
() => log.push(`Unexpected evaluation of callback function, key: ${invalidKey}`));
|
||||||
}, `${typeof invalidKey} not allowed as WeakMap key`);
|
}, `${typeof invalidKey} not allowed as WeakMap key`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user