diff --git a/src/core/internal/dictionary.js b/src/core/internal/dictionary.js index efa1a0009..3f6a15e99 100644 --- a/src/core/internal/dictionary.js +++ b/src/core/internal/dictionary.js @@ -66,7 +66,7 @@ // Hack check for valueOf var valueOf = obj.valueOf(); if (typeof valueOf === 'number') { return numberHashFn(valueOf); } - if (typeof obj === 'string') { return stringHashFn(valueOf); } + if (typeof valueOf === 'string') { return stringHashFn(valueOf); } } if (obj.hashCode) { return obj.hashCode(); }