better typeof symbol transformer

This commit is contained in:
Sebastian McKenzie
2015-01-15 02:24:32 +11:00
parent 44f06c0b4c
commit b60eca0a76
2 changed files with 14 additions and 2 deletions

View File

@@ -5,4 +5,4 @@ var _typeof = function (obj) {
};
var s = Symbol("s");
assert.equal(_typeof(s), "symbol");
assert.equal(typeof s === "undefined" ? "undefined" : _typeof(s), "symbol");