Merge branch 'anysymbol-fix' of https://github.com/voithos/jasmine

- Merge #1435 from @voithos
This commit is contained in:
Steve Gravrock
2017-10-24 08:15:17 -07:00
6 changed files with 76 additions and 2 deletions

View File

@@ -1499,6 +1499,12 @@ getJasmineRequireObj().Any = function(j$) {
return typeof other == 'boolean';
}
/* jshint -W122 */
if (typeof Symbol != 'undefined' && this.expectedObject == Symbol) {
return typeof other == 'symbol';
}
/* jshint +W122 */
return other instanceof this.expectedObject;
};