Does this function definitely detect support of @@toStringTag
sefely in any environment?
function hasToStringTagSymbol() {
if (Symbol && (typeof Symbol() == "symbol") && !!Symbol.toStringTag) {
var xTest = function () { };
xTest.prototype[Symbol.toStringTag] = "Test";
xTest = new xTest();
return toString.call(xTest) == "[object Test]";
}
else {
return false;
}
}