diff --git a/test/built-ins/WeakMap/prototype/getOrInsertComputed/throw-if-key-cannot-be-held-weakly.js b/test/built-ins/WeakMap/prototype/getOrInsertComputed/throw-if-key-cannot-be-held-weakly.js index fa85e7e0fb..8fe94a2792 100644 --- a/test/built-ins/WeakMap/prototype/getOrInsertComputed/throw-if-key-cannot-be-held-weakly.js +++ b/test/built-ins/WeakMap/prototype/getOrInsertComputed/throw-if-key-cannot-be-held-weakly.js @@ -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`); }