Removed typeof from log message.

This commit is contained in:
Jonas Haukenes 2025-09-14 18:34:32 +02:00 committed by Ms2ger
parent 557b748bff
commit daa4186be4

View File

@ -22,7 +22,7 @@ var s = new WeakMap();
for (let invalidKey of invalidKeys) {
assert.throws(TypeError, function () {
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`);
}