Skip to content

Commit

Permalink
fix(symbol): treat null value the same as undefined
Browse files Browse the repository at this point in the history
Fixes #13
  • Loading branch information
stoffeastrom committed Mar 9, 2016
1 parent 727575b commit 4b705bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/symbol.js
Expand Up @@ -248,7 +248,7 @@ import {PLATFORM} from 'aurelia-pal';
descriptor.value = function () {
var
str = toString.call(this),
tst = typeof this === 'undefined' ? undefined : this[Symbol.toStringTag]
tst = typeof this === 'undefined' || this === null ? undefined : this[Symbol.toStringTag]
;
return typeof tst === 'undefined' ? str : ('[object ' + tst + ']');
};
Expand Down

0 comments on commit 4b705bb

Please sign in to comment.